[kompare] [Bug 402363] New: File mode always set to 0600 when saving changes
John Baldwin
bugzilla_noreply at kde.org
Wed Dec 19 20:05:05 GMT 2018
https://bugs.kde.org/show_bug.cgi?id=402363
Bug ID: 402363
Summary: File mode always set to 0600 when saving changes
Product: kompare
Version: unspecified
Platform: FreeBSD Ports
OS: FreeBSD
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: kompare-devel at kde.org
Reporter: jhb at FreeBSD.org
Target Milestone: ---
SUMMARY
When using kompare to apply changes from one file to another, the updated
file's permissions are reset to 0600 (presumably you are creating a new file
with 0600 and renaming it on top of the old file instead of opening and
rewriting the existing file and this is losing the existing permissions as a
result?). This seems like a regression from kompare in KDE 4.
STEPS TO REPRODUCE
1. echo foo > foo
2. echo bar > bar
3. ls -l foo bar
-rw-r--r-- 1 john john 4 Dec 19 11:58 bar
-rw-r--r-- 1 john john 4 Dec 19 11:58 foo
4. kompare foo bar
<space> to apply delta
Ctrl-Q to quit and save
5. ls -l foo bar
-rw------- 1 john wheel 4 Dec 19 11:58 bar
-rw-r--r-- 1 john john 4 Dec 19 11:58 foo
OBSERVED RESULT
-rw------- 1 john wheel 4 Dec 19 11:58 bar
EXPECTED RESULT
-rw-r--r-- 1 john wheel 4 Dec 19 11:58 bar
SOFTWARE/OS VERSIONS
FreeBSD: 12.0-PRERELASE
KDE Plasma Version: 5.12.7
KDE Frameworks Version: 5.52.0
Qt Version: 5.11.2
kompare: 18.08.3
ADDITIONAL INFORMATION
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Kompare-devel
mailing list