bugGNU nano - Bugs: bug #27273, .save files should retain...

 
 

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

Submitted by:  Mike Frysinger <vapier>
Submitted on:  Tue 18 Aug 2009 01:09:43 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Ready For Test
Privacy: PublicAssigned to: Chris Allegretta <astyanax>
Open/Closed: OpenRelease: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

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>

 

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

Attach File(s):
   
   
Comment:
   

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 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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 20 Nov 2009 05:09:27 AM UTCastyanaxStatusNone=>Ready For Test
      Assigned toNone=>astyanax

    Back to the top


    Powered by Savane 3.1-cleanup