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

Submitter:  Benno Schulenberg <bens>
Submitted:  Sun 22 May 2016 10:01:53 AM UTC
Votes: 1
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Sun 12 Sep 2021 08:08:34 AM UTC, comment #3: 

Actually the issue was not fixed, and it was rereported in bug #61146.  Commit 5cedb53c changes the code added in commit 497f126b to do the right thing in the case of a nameless buffer: write a lock file whenever LOCKING is true, not just when previously a lock file existed.

Benno Schulenberg <bens>
Group administrator
Mon 13 Jan 2020 07:08:33 PM UTC, comment #2: 

Fixed in git, commit 497f126b.

Benno Schulenberg <bens>
Group administrator
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>
Group 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>
Group administrator

 

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

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

    There is 1 vote 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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-02-09 bens Open/ClosedOpen Closed
    2020-01-13 bens StatusNone Fixed
        Assigned toNone bens
    2018-10-23 dolorous Carbon-Copy- Added dolorous

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code