Bug 377373 - "Save Copy" gives wrong file permission 600 instead
Summary: "Save Copy" gives wrong file permission 600 instead
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-08 11:36 UTC by Guo Yunhe
Modified: 2017-07-25 12:59 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guo Yunhe 2017-03-08 11:36:12 UTC
I am using Kate 16.12.2. When I use "Save copy" function in File menu, it saves the document with 600 permission and applications like Apache web server cannot read it. The original file's permission is 644.

The expected behavior should be using same file permission to make a copy. If the original file, most likely, uses 644, the copied file should also use 644.
Comment 1 Christoph Cullmann 2017-07-25 12:59:04 UTC
Git commit f34b10f77be12c748afaf020581a678b7293525e by Christoph Cullmann.
Committed on 25/07/2017 at 12:58.
Pushed by cullmann into branch 'master'.

copy permissions from original file on save copy

M  +11   -5    src/document/katedocument.cpp

https://commits.kde.org/ktexteditor/f34b10f77be12c748afaf020581a678b7293525e