GNU nano - Bugs: bug #58439, using 'allow_insecure_backup' in...
You are not allowed to post comments on this tracker with your current authentication level.
bug #58439: using 'allow_insecure_backup' in unwritable directory mangles existing backup
Submitter: | Benno Schulenberg <bens> | ||
Submitted: | Sun 24 May 2020 05:23:43 PM UTC | ||
Severity: | 3 - Normal | Status: | Fixed |
Assigned to: | bens | Open/Closed: | Closed |
Mon 25 May 2020 10:33:34 AM UTC, comment #2: |
Benno Schulenberg <bens> |
Mon 25 May 2020 08:00:58 AM UTC, comment #1: Of course, it's not necessary to use ACLs to obtain the same effect. Simply having a writable file plus backup file in an unwritable directory is enough to reproduce the bug:
Now run 'src/nano -B tub/bar', and type: ccc ^S ^X
|
Benno Schulenberg <bens> |
Sun 24 May 2020 05:23:43 PM UTC, original submission:
To reproduce, put 'set allow_insecure_backup' in your ~/.nanorc file, and run (replacing 'yourusername' with your actual user name):
Verify that 'foo~' and 'foo' indeed contain "000" and "111".
|
Benno Schulenberg <bens> |
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 5 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2020-07-30 | bens | Open/Closed | Open | Closed | |
2020-05-25 | bens | Status | None | Fixed | |
2020-05-25 | bens | Summary | using 'allow_insecure_backup' in unwritable directory can create bad backups | using 'allow_insecure_backup' in unwritable directory mangles existing backup | |
2020-05-25 | bens | Summary | using 'allow_insecure_backup' on files with ACLs can create bad backups | using 'allow_insecure_backup' in unwritable directory can create bad backups | |
2020-05-24 | bens | Summary | using 'allow_insecure_backups' on files with ACLs can create bad backups | using 'allow_insecure_backup' on files with ACLs can create bad backups |
Powered by Savane 3.13-f8d8.
Corresponding source code
Fixed in git, commit b3052246, by using O_TRUNC instead of O_APPEND.