bugGNU nano - Bugs: bug #57698, when a .swp file is not a lock...

 
 

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

bug #57698: when a .swp file is not a lock file, nano makes a mess

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Thu 30 Jan 2020 12:35:49 PM UTC  
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  Benno Schulenberg <bens> Open/Closed:  Closed

Thu 30 Jan 2020 05:50:23 PM UTC, comment #1: 

Fixed in git, commit b856fc46.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Thu 30 Jan 2020 12:35:49 PM UTC, original submission:  

To reproduce, first make a symlink: 'ln -s  NEWS  .README.swp'.  Then run 'src/nano --locking README'.  See that there is no title bar and that at the bottom of the screen it says:

File README is being edited (by avikskruid"
•  with 19.12.23 -, PID 1210196023); continue?
 N No           ^C Cancel

Expected behavior: when a .swp file is not actually a lock file, nano should ignore it and proceed as if locking was not enabled, just like Vim.  (Vim doesn't even say anything: it completely ignores the file and leaves it alone.  But I think nano should produce some warning.)

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.

 

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 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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-02-09 bens Severity3 - Normal => 2 - Minor
        Open/ClosedOpen => Closed
    2020-01-30 bens StatusIn Progress => Fixed
        Summarywhen a lock file is not a lock file, nano makes a mess => when a .swp file is not a lock file, nano makes a mess

    Back to the top


    Powered by Savane 3.7