summaryrefslogtreecommitdiff
path: root/unotools/source/ucbhelper/tempfile.cxx
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2010-10-15 10:57:59 +0200
committerJan Holesovsky <kendy@suse.cz>2010-10-15 10:57:59 +0200
commit110478088e4eca26bf99d2024eeba486e26aa557 (patch)
treed9513a539227d9290dd29eb8c3d74944e29f0e38 /unotools/source/ucbhelper/tempfile.cxx
parentfef486c99880d65b612831840a9f83e3fe4a0e17 (diff)
Fix saving tempfiles when locking is not supported.
unotools-tempfile-nonlocking.diff, n#560877, i#107511
Diffstat (limited to 'unotools/source/ucbhelper/tempfile.cxx')
-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 4e3580a92e99..5a99c522035f 100644
--- a/unotools/source/ucbhelper/tempfile.cxx
+++ b/unotools/source/ucbhelper/tempfile.cxx
@@ -307,7 +307,7 @@ void lcl_createName(TempFile_Impl& _rImpl,const String& rLeadingChars,sal_Bool _
#ifdef UNX
umask(old_mode);
#endif
- if ( err == FileBase::E_None )
+ if ( err == FileBase::E_None || err == FileBase::E_NOLCK )
{
_rImpl.aName = aTmp;
aFile.close();