GNU nano - Bugs: bug #29514, [nano 2.2.2] backup should ignore...
You are not allowed to post comments on this tracker with your current authentication level.
bug #29514: [nano 2.2.2] backup should ignore chown errors
Submitter: | None | ||
Submitted: | Sat 10 Apr 2010 11:07:51 PM UTC | ||
Severity: | 4 - Important | Status: | Fixed |
Assigned to: | astyanax | Open/Closed: | Closed |
Sun 24 May 2020 03:12:19 PM UTC, comment #2: |
Benno Schulenberg <bens> |
Sun 23 May 2010 03:19:16 AM UTC, comment #1: Looking at this.
|
Chris Allegretta <astyanax> |
Sat 10 Apr 2010 11:07:51 PM UTC, original submission:
As of version 2.2.2, with 'set backup' enabled, nano will try to chown() the newly created backup file to the owner of the original file being edited. The editing user is very likely not to be root, and it's not uncommon for a non-root user to be editing a file owned by a different user. If the chown() fails, it should not cause the entire backup to fail (which thus prevents saving the original file). The backup file is actually written successfully into the backupdir, the chmod() finishes successfully. The only reason the backup fails is because a non-root user cannot chown() a file to be owned by a different user.
|
Anonymous |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
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 6 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2014-02-24 | bens | Status | In Progress | Fixed | |
Open/Closed | Open | Closed | |||
2010-05-23 | astyanax | Carbon-Copy | - | Added skibrianski | |
2010-05-23 | astyanax | Severity | 3 - Normal | 4 - Important | |
Status | None | In Progress | |||
Assigned to | None | astyanax |
Powered by Savane 3.13-f8d8.
Corresponding source code
The point of always calling chown() is to change the group of the file (in case it is different from the user's default group).