https://bugs.freedesktop.org/show_bug.cgi?id=59022

--- Comment #4 from Lionel Elie Mamane <[email protected]> ---
This patch resolves the issue, removing the fcntl call:


--- a/sal/osl/unx/file.cxx
+++ b/sal/osl/unx/file.cxx
@@ -1033,7 +1033,7 @@ SAL_CALL osl_openFilePath( const char *cpFilePath,
oslFileHandle* pHandle, sal_u
             aflock.l_start = 0;
             aflock.l_len = 0;

-            if (-1 == fcntl (fd, F_SETLK, &aflock))
+            if (-1 == 0)
             {
                 int saved_errno = errno;
                 OSL_TRACE("osl_openFile(%s, %s): fcntl(%d, F_SETLK) failed:
%s",


It probably breaks other things and is not the right fix, but it confirms that
the culprit is the fcntl call in the strace and the "idea" of opening the file
twice!

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to