[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - sfx2/source

Stephan Bergmann sbergman at redhat.com
Thu Feb 11 20:34:32 UTC 2016


 sfx2/source/doc/docfile.cxx |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

New commits:
commit 7f93dba17d397c5bf265504e8fbecd6b615e1787
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Feb 11 18:26:24 2016 +0100

    tdf#56544: Support LO's .~lock.*# file locking over smb, too
    
    Change-Id: Ia18c3044aba82f935b13f22ba98aff42e9d5098f
    (cherry picked from commit 763521335b01a37c511ae8069cade9b4b69fef66)
    Reviewed-on: https://gerrit.libreoffice.org/22298
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>

diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx
index d89235a..fcb7f84 100644
--- a/sfx2/source/doc/docfile.cxx
+++ b/sfx2/source/doc/docfile.cxx
@@ -925,11 +925,12 @@ namespace
     {
         INetURLObject aUrl( rLogicName );
         INetProtocol eProt = aUrl.GetProtocol();
-#if HAVE_FEATURE_MACOSX_SANDBOX
-        return eProt == INetProtocol::Sftp;
-#else
-        return eProt == INetProtocol::File || eProt == INetProtocol::Sftp;
+#if !HAVE_FEATURE_MACOSX_SANDBOX
+        if (eProt == INetProtocol::File) {
+            return true;
+        }
 #endif
+        return eProt == INetProtocol::Smb || eProt == INetProtocol::Sftp;
     }
 }
 


More information about the Libreoffice-commits mailing list