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


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

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

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


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

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

Benno Schulenberg <bens>
Project 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>
Project AdministratorIn charge of this item.
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>
Project Member


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

Attach Files:

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)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    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.3