bugGNU nano - Bugs: bug #51040, when using 'savefile' or...

 
 

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

bug #51040: when using 'savefile' or --tempfile, nano does not warn about a changed file

Submitter:  Benno Schulenberg <bens>
Submitted:  Tue 16 May 2017 07:16:41 PM UTC
   
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Sat 14 Oct 2017 07:03:08 PM UTC, comment #2: 

Fixed in git, 217cfbf3, by a patch from Viorel Bota.

Benno Schulenberg <bens>
Group administrator
Sun 24 Sep 2017 07:21:42 PM UTC, comment #1: 
Benno Schulenberg <bens>
Group administrator
Tue 16 May 2017 07:16:41 PM UTC, original submission:  

When using the option --tempfile, or when having bound the action 'savefile' to some key combo and typing that key combo, then nano will write out the current buffer (if it has a name) without any checks, also without the check whether the file has been modified on disk after nano read it.  Nano should always perform that check, also when --tempfile or 'savefile' is used.

Benno Schulenberg <bens>
Group administrator

 

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

Attached Files
file #41902:  0001-This-fixes-https-savannah.gnu.org-bugs-51040.patch added by None (6KiB - text/x-patch - Includes changes made by 0001-files-check-for-a-changed-disk-file-also-for-savefil and updated handling of y/n/c when using option -t)
file #41851:  0001-002-fix-for-bug-51040-when-using-savefile-or-tempfil.patch added by None (2KiB - text/x-patch - 002 proposed fix. changed: source file "files.c" function "do_writeout(bool exiting)")
file #41832:  0001-fix-for-bug-51040-when-using-savefile-or-tempfile.patch added by None (2KiB - text/x-patch - proposed fix. changed: source file "files.c" function "do_writeout(bool exiting)")

 

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

    Date Changed by Updated Field Previous Value => Replaced by
    2017-11-19 bens Open/ClosedOpen Closed
    2017-10-14 bens StatusIn Progress Fixed
    2017-09-27 None Attached File- Added 0001-This-fixes-https-savannah.gnu.org-bugs-51040.patch, #41902
    2017-09-24 bens StatusNone In Progress
        Assigned toNone bens
    2017-09-20 None Attached File- Added 0001-002-fix-for-bug-51040-when-using-savefile-or-tempfil.patch, #41851
    2017-09-18 None Attached File- Added 0001-fix-for-bug-51040-when-using-savefile-or-tempfile.patch, #41832

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code