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

            Bug ID: 119559
           Summary: Writing documents disobey systemwide umask
           Product: LibreOffice
           Version: 6.1.0.3 release
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Description:
Creating a new document or saving an modified existing one, the created file is
created with wrong file permissions.

All files are created as user rw only. Before existing group rw flags are
disapearing.


Steps to Reproduce:
1. open a file odt or other libreoffice document, in our case on NFS Share and
set up group sticky bit above the curren dir

[jojo@pc6 O-20180828-010]$ umask
0002
[jojo@pc6 O-20180828-010]$ ls -la
drwxrwxr-x 1 leander firma    206 28. Aug 11:09  ./
drwxrwxr-x 1 leander firma     54 28. Aug 10:33  ../
-rw-rw---- 1 jojo    firma 404180 28. Aug 11:03 'O-20180828-010.odt'

2. edit and save

[jojo@pc6 O-20180828-010 Servertausch]$ /usr/lib/libreoffice/program/swriter
'O-20180828-010.odt' 
[jojo@pc6 O-20180828-010 Servertausch]$ ls -la
-rw------- 1 jojo  firma 404180 28. Aug 11:09 'O-20180828-010.odt'


3. permissions of the freshly edited file are forgotten and set to user only.

Actual Results:
[jojo@pc6 O-20180828-010 Servertausch]$ /usr/lib/libreoffice/program/swriter
'O-20180828-010.odt' 
[jojo@pc6 O-20180828-010 Servertausch]$ ls -la
-rw------- 1 jojo  firma 404180 28. Aug 11:09 'O-20180828-010.odt'


Expected Results:
[jojo@pc6 O-20180828-010 Servertausch]$ /usr/lib/libreoffice/program/swriter
'O-20180828-010.odt' 
[jojo@pc6 O-20180828-010 Servertausch]$ ls -la
-rw-rw---- 1 jojo  firma 404180 28. Aug 11:09 'O-20180828-010.odt'



Reproducible: Always


User Profile Reset: Yes



Additional Info:
crreating the odt file using the correct umask, with group read and write
permission

Version: 6.1.0.3
Build-ID: 6.1.0-2
CPU-Threads: 8; BS: Linux 4.18; UI-Render: Standard; VCL: gtk3_kde5; 
Gebietsschema: de-DE (de_DE.UTF-8); Calc: threaded

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

Reply via email to