Bug 427767 - Merged file permissions not consistent with original
Summary: Merged file permissions not consistent with original
Status: REPORTED
Alias: None
Product: kompare
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR major
Target Milestone: ---
Assignee: Kompare developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-15 16:07 UTC by Maverick
Modified: 2020-10-15 16:07 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maverick 2020-10-15 16:07:48 UTC
SUMMARY
When saving file after merge, the permissions of the file might change. This can easily result in a broken system when used to merge files in /etc under su, like when managing .pacnew in Arch Linux and is therefore a severe problem.

STEPS TO REPRODUCE
1. Touch a file test.txt and change group and others permissions in some way
2. Compare test.txt with another file, apply a difference and save
3. Check permissions of test.txt. 

OBSERVED RESULT
test.txt permissions always end up "-rw-------", no matter what they were set to in 1. Note, that those are also not the default permissions as were after initial touch.

EXPECTED RESULT
Permissions should be identical to in 1.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch / 5
KDE Plasma Version: 5.19.5
KDE Frameworks Version: 5.74.0
Qt Version: 5.15.1