bugGNU nano - Bugs: bug #57700, when a lock file cannot be read,...

 
 

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

bug #57700: when a lock file cannot be read, nano should ignore it

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

Thu 30 Jan 2020 06:13:02 PM UTC, comment #1: 

Fixed in git, commit f494bfcb.

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

Currently, when an existing lock file is somehow unreadable, nano reports "[ Error opening lock file ./.README.swp: Permission denied ]" and refuses to open the file, it opens a blank buffer instead.  This is not good.  Lock files are meant to help the user, to warn her that someone else is editing the same; they are not meant to hinder or prevent the user from editing the file.

Now the user is forced to exit from nano, remove the lock file manually, and then rerun the previous command.  Nano should just warn conspicuously and open the file anyway.  (Maybe it would be nice to put up a trimmed-down dialog, asking the user what to do with the faulty .swp file, but that I can't be bothered.  Move fast, don't hinder the user.)

To reproduce, 'cp NEWS .README.swp; chmod a-rw .README.swp; src/nano --locking README'.

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 Summarywhen a lock cannot be read, nano should ignore it => when a lock file cannot be read, nano should ignore it
    2020-01-30 bens StatusIn Progress => Fixed

    Back to the top


    Powered by Savane 3.7