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 - NormalStatus: 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 File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


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

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

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 14 Jun 2014 08:31:58 PM UTCbensStatusReady For Test=>Fixed
      Summary.save files should retain permission/ownership (if possible)=>[Request] .save files should retain permission/ownership (if possible)
    Fri 20 Nov 2009 05:09:27 AM UTCastyanaxStatusNone=>Ready For Test
      Assigned toNone=>astyanax

    Back to the top

    Powered by Savane 3.1-cleanup1