summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Voytenko <mav@openoffice.org>2010-11-18 15:48:20 +0100
committerMikhail Voytenko <mav@openoffice.org>2010-11-18 15:48:20 +0100
commit7a2d252ecfb4503de90388f938145e96aa41e3f5 (patch)
tree947de55ccab567bad2458bab87af8c9b4fe8bdbb
parent2a0841f9fb80078ce623cd00cbb8be48ecba9b6a (diff)
fwk160: #i107511# do not lock the file without necessity
-rw-r--r--unotools/source/ucbhelper/tempfile.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/unotools/source/ucbhelper/tempfile.cxx b/unotools/source/ucbhelper/tempfile.cxx
index 87fddc0c65cd..26742151ee3d 100644
--- a/unotools/source/ucbhelper/tempfile.cxx
+++ b/unotools/source/ucbhelper/tempfile.cxx
@@ -237,7 +237,7 @@ void CreateTempName_Impl( String& rName, sal_Bool bKeep, sal_Bool bDir = sal_Tru
/* RW permission for the user only! */
mode_t old_mode = umask(077);
#endif
- FileBase::RC err = aFile.open(osl_File_OpenFlag_Create);
+ FileBase::RC err = aFile.open( osl_File_OpenFlag_Create | osl_File_OpenFlag_NoLock );
#ifdef UNX
umask(old_mode);
#endif