After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 169816 - [PATCH]use same permission as the local file when saving a copy
[PATCH]use same permission as the local file when saving a copy
Status: RESOLVED FIXED
Product: gedit-plugins
Classification: Other
Component: General
unspecified
Other Linux
: High normal
: 2.12.0
Assigned To: Gedit maintainers
gedit QA volunteers
Depends on:
Blocks:
 
 
Reported: 2005-03-10 10:07 UTC by Paolo Borelli
Modified: 2019-03-23 21:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (2.01 KB, patch)
2005-03-10 10:07 UTC, Paolo Borelli
none Details | Review
committed patch (2.74 KB, patch)
2005-08-02 17:12 UTC, Paolo Borelli
none Details | Review

Description Paolo Borelli 2005-03-10 10:07:23 UTC
As we already discussed... when using save a copy it would be nice if the copy
would default to have the same permissions as the original file (if it exists).

This is useful for instance if you are working on the local copy of a script and
then want to save the working copy on a remote machine, without having to ssh to
the machine and mark the script as executable each time.

The attached patch seems to work fine for me, but sure some review would be
appreciated. The patch only tries to preserve the r/w/x bits for the owner,
group and others. It doesn't preserve the SUID, sticky bit etc.
Comment 1 Paolo Borelli 2005-03-10 10:07:57 UTC
Created attachment 38494 [details] [review]
patch
Comment 2 Christian Kirbach 2005-03-10 11:12:11 UTC
Retitling. Adding PATCH keyword.
Comment 3 Christian Kirbach 2005-03-10 11:23:13 UTC
Bug 104432 contains a patch against Version 2.0.2

Confirming this bug. Raising priority 

What is your version Paolo?
Comment 4 Christian Kirbach 2005-03-10 11:25:43 UTC
Arg Bug 104432 deals with owner and group not permissions
Comment 5 Paolo Borelli 2005-08-02 17:12:34 UTC
Created attachment 50140 [details] [review]
committed patch

committed.

(note that the committed patch fixes the case of more restrictive permissions)