[Libreoffice-commits] .: unotools/source

Jan Holesovsky kendy at kemper.freedesktop.org
Fri Oct 15 02:01:27 PDT 2010


 unotools/source/ucbhelper/tempfile.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 84cf24d8a258f2fc0053668c2c8f64d9c20d5cde
Author: Jan Holesovsky <kendy at suse.cz>
Date:   Fri Oct 15 10:57:59 2010 +0200

    Fix saving tempfiles when locking is not supported.
    
    unotools-tempfile-nonlocking.diff, n#560877, i#107511

diff --git a/unotools/source/ucbhelper/tempfile.cxx b/unotools/source/ucbhelper/tempfile.cxx
index f86c543..36982f2 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();


More information about the Libreoffice-commits mailing list