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 Aug 18 01:09:43 2009  
 
Severity: 3 - NormalStatus: Fixed
Assigned to: Chris Allegretta <astyanax>Open/Closed: Closed

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Sat Jun 14 20:31:58 2014, comment #2:

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

Benno Schulenberg <bens>
Project Administrator
Fri Nov 20 05:09:27 2009, comment #1:

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

Chris Allegretta <astyanax>
Project AdministratorIn charge of this item.
Tue Aug 18 01:09:43 2009, 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):
   
   
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 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 Jun 14 20:31:58 2014bensStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
      Summary.save files should retain permission/ownership (if possible)=>[Request] .save files should retain permission/ownership (if possible)
    Fri Nov 20 05:09:27 2009astyanaxStatusNone=>Ready For Test
      Assigned toNone=>astyanax

    Back to the top


    Powered by Savane 3.1-cleanup