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

 
 

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

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

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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

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

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sun 24 Sep 2017 07:21:42 PM UTC, comment #1:

See the developments on the mailing list: http://lists.gnu.org/archive/html/nano-devel/2017-09/msg00062.html

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.

 

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

Attach File(s):
   
   
Comment:
   

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
  • -unavailable- added by bens (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 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 14 Oct 2017 07:03:08 PM UTCbensStatusIn Progress=>Fixed
    Wed 27 Sep 2017 08:51:17 PM UTCNoneAttached File-=>Added 0001-This-fixes-https-savannah.gnu.org-bugs-51040.patch, #41902
    Sun 24 Sep 2017 07:21:42 PM UTCbensStatusNone=>In Progress
      Assigned toNone=>bens
    Wed 20 Sep 2017 10:40:09 PM UTCNoneAttached File-=>Added 0001-002-fix-for-bug-51040-when-using-savefile-or-tempfil.patch, #41851
    Mon 18 Sep 2017 09:32:11 PM UTCNoneAttached File-=>Added 0001-fix-for-bug-51040-when-using-savefile-or-tempfile.patch, #41832

    Back to the top


    Powered by Savane 3.1-cleanup1