bugGNU nano - Bugs: bug #27273, [Request] .save files should...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #27273: [Request] .save files should retain permission/ownership (if possible)

Submitter:  Mike Frysinger <vapier>
Submitted:  Tue 18 Aug 2009 01:09:43 AM UTC
   
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  astyanax Open/Closed:  Closed

Sat 14 Jun 2014 08:31:58 PM UTC, comment #2: 

This has been fixed, as far as I have tested.

Benno Schulenberg <bens>
Group administrator
Fri 20 Nov 2009 05:09:27 AM UTC, comment #1: 

Good suggestion Mike.  Give it a try as of r4432.

Chris Allegretta <astyanax>
Group administrator
Tue 18 Aug 2009 01:09:43 AM UTC, original submission:  

when nano creates a .save file, it just uses current owner/group and umask to create it.  if editing a shell script, it is often perms like 0755, but the .save file will be like 0644.  i think it makes sense to try an fchmod() the .save output to match the original file.  fchown() probably wont work most of the time, but that should be attempted as well (and errors ignored).

Mike Frysinger <vapier>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bens (Posted a comment)
  • -email is unavailable- added by astyanax (Posted a comment)
  • -email is unavailable- added by vapier (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-06-14 bens StatusReady For Test Fixed
        Open/ClosedOpen Closed
        Summary.save files should retain permission/ownership (if possible) [Request] .save files should retain permission/ownership (if possible)
    2009-11-20 astyanax StatusNone Ready For Test
        Assigned toNone astyanax

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code