https://bugs.freedesktop.org/show_bug.cgi?id=43095
Bug #: 43095
Summary: File access rights are not determined correctly
(OpenAFS, ACLs)
Classification: Unclassified
Product: LibreOffice
Version: LibO Master
Platform: All
OS/Version: Linux (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Libreoffice
AssignedTo: [email protected]
ReportedBy: [email protected]
Created attachment 53691
--> https://bugs.freedesktop.org/attachment.cgi?id=53691
Patch to allow the use of real access() calls
Hi,
this is a bug inherited from OOo (#101891, unfixed for more than 2 years): File
permissions are determined by a stat() call and manually checking the
permission map. This is plain wrong when filesystems not using UNIX semantics
(e.g. OpenAFS or Linux ACLs) are in place, and causes perfectly writeable files
(haven't checked that behaviour with libreoffice, but its wrong anyways) to
open write-protected. Instead access() calls must be used to determine
readability and writeablitity. On the other side it seems there have been
problems using access() in the past:
> We don't use access(...) because access follows links which
> may cause performance problems see #97133.
(comment in sal/osl/unx/file_stat.cxx)
If that's still the case it would be nice to have a compile time option to
switch between the two behaviours.
Patch against master is attached.
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- 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