GNOME Bugzilla – Bug 169816
[PATCH]use same permission as the local file when saving a copy
Last modified: 2019-03-23 21:02:25 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.
Created attachment 38494 [details] [review] patch
Retitling. Adding PATCH keyword.
Bug 104432 contains a patch against Version 2.0.2 Confirming this bug. Raising priority What is your version Paolo?
Arg Bug 104432 deals with owner and group not permissions
Created attachment 50140 [details] [review] committed patch committed. (note that the committed patch fixes the case of more restrictive permissions)