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


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

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  
Votes:  1  
Severity:  3 - Normal Status:  None
Assigned to:  None Open/Closed:  Open

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


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 dolorous (Voted in favor of this item)
  • -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 1 encouragement so far.

    Only logged-in users can vote.




    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-10-23 dolorous Carbon-Copy- => Added dolorous

    Back to the top

    Powered by Savane 3.5