[Libreoffice-bugs] [Bug 119050] New: Second Export To PDF Does Not Honor Umask

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Aug 1 19:15:38 UTC 2018


https://bugs.documentfoundation.org/show_bug.cgi?id=119050

            Bug ID: 119050
           Summary: Second Export To PDF Does Not Honor Umask
           Product: LibreOffice
           Version: 6.1.0.2 rc
          Hardware: All
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: drichard at largo.com

This is a regression that happened sometime between 6.0 and 6.1.   When you
export to PDF a second time and write over the top of a previous file, the
permissions are set to 600 on Linux.   When you initially create the PDF, it's
using the correct permissions (in our case 666).

Replication is super easy;

1) Open Writer, and type in a few words

2) Select File > Export As > Export as PDF

3) Create a file called sample.pdf and everything works:

drichard at desktopnxcloud:/home/largo/tmp$ ls -lad sample.pdf
-rw-rw-rw- 1 drichard drichard 7615 Aug  1 15:12 sample.pdf

4) Follow step #3 again and try and write over the same file.  It will ask if
you want to replace it, select [ YES ]

The file that is created is now 600:

drichard at desktopnxcloud:/home/largo/tmp$ ls -lad sample.pdf
-rw------- 1 drichard drichard 7615 Aug  1 15:13 sample.pdf

This file cannot be opened by other users, and will be a showstopper for us. 
We use this feature all the time and users share these files with one another.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20180801/f565c82e/attachment.html>


More information about the Libreoffice-bugs mailing list