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

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

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

Fixed in git, commit b856fc46.

Benno Schulenberg <bens>
Group administrator
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>
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 bens (Submitted the item)
  •  

    There are 0 votes 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 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.13-d3ae.
    Corresponding source code