bugGNU nano - Bugs: bug #47975, saving a still nameless buffer...

 
 

bug #47975: saving a still nameless buffer does not create a lock file

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Sun 22 May 2016 10:01:53 AM UTC  
 
Severity: 3 - NormalStatus: None
Assigned to: NoneOpen/Closed: Open

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Fri 24 Feb 2017 11:18:09 AM UTC, comment #1:

The warning was disabled in commit 32719d64 (see bug #49875), and removed with commit 9e6e1ebe. But creating a file (or overwriting one) by saving a new buffer still does not create a lock file.

Also, when overwriting an existing file, nano of course asks whether to OVERWRITE this existing file, but it does not clamor mayday when this file is already opened and locked by another nano (or even by the very same nano).

Benno Schulenberg <bens>
Project Administrator
Sun 22 May 2016 10:01:53 AM UTC, original submission:

To reproduce, run 'src/nano --ignore --locking' and type:

aa ^O xx <Enter> m

When the "m" is typed, nano beeps and the statusbar shows this message: "[ Warning: Modifying a file which is not locked, check directory permission? ]".

Expected behavior: also when a file is created (or overwritten) by ^O, a lock file should be written (when locking is enabled).

Bug is present since the beginning, nano-2.3.2.

Benno Schulenberg <bens>
Project Administrator

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

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):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup1