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 - Normal Status:  Fixed
Assigned to:  Benno Schulenberg <bens> Open/Closed:  Closed

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 Files:
   
   
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
  • -email is unavailable- added by bens (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    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.3