bugGNU nano - Bugs: bug #58442, when user answers "No"...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #58442: when user answers "No" when backup fails, she cannot change her mind any more

Submitter:  Benno Schulenberg <bens>
Submitted:  Mon 25 May 2020 09:39:34 AM UTC
   
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Fri 29 May 2020 08:32:48 AM UTC, comment #2: 

Fixed in git, commit eddd8963, by asking the question every time that making a backup fails.

Also, the questions was reworded to not suggest that the user answers "No", because when deleting an existing backup fails, this is no reason why overwriting the data file itself would fail.

Benno Schulenberg <bens>
Group administrator
Mon 25 May 2020 09:43:00 AM UTC, comment #1: 

Of course, you have to run nano with the --backup flag: 'src/nano -B tub/bar'.

Benno Schulenberg <bens>
Group administrator
Mon 25 May 2020 09:39:34 AM UTC, original submission:  

To reproduce, remove 'set allow_insecure_backup' from your nanorc files, then run:

mkdir tub
touch tub/bar~ tub/bar
sudo chown root:root tub
sudo chmod go-w tub
echo aaa >tub/bar~
echo bbb >tub/bar

Then run 'src/nano tub/bar' and type: ccc ^S

Nano prompts: "Failed to write backup file; continue saving? (Say N if unsure.)"  Well, do as nano advises: type N.  Then, maybe the user sees that the file is still marked as Modified, or maybe she just wants to exit and types ^X and answers Y to the prompt and presses <Enter> on the name.  Result: "Error writing backup file tub/bar~: Permission denied ".

One: this is confusing, because the user is not trying to save a backup file.  Two: the error message is not red.  And three: there is now no way any more for the user to save the changed buffer, other than by saving it under a different name.  Hrrrm!

Benno Schulenberg <bens>
Group administrator

 

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

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bens (Submitted the item)
  •  

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

    Date Changed by Updated Field Previous Value => Replaced by
    2020-07-30 bens Open/ClosedOpen Closed
    2020-05-29 bens StatusNone Fixed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code