bugGNU nano - Bugs: bug #57696, in restricted mode, nano will...

 
 

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

bug #57696: in restricted mode, nano will nevertheless write a lock file

Submitter:  Benno Schulenberg <bens>
Submitted:  Wed 29 Jan 2020 06:46:36 PM UTC
   
 
Severity:  2 - Minor Status:  Wont Fix
Assigned to:  None Open/Closed:  Closed

Mon 03 Feb 2020 01:31:59 PM UTC, comment #1: 

I don't know what to do with this.  Rvim writes lock files, so I think rnano should too.  But if we want to do what it says in the man page ("don't read or write to any file not specified on the command line"), then we would have to suppress this.  But... we read nanorc files in restricted mode (since version 3.2), and we've written lock files in restricted mode since lock files were introduced (in version 2.3.2), so...  I'm going to let this be for now.

Benno Schulenberg <bens>
Group administrator
Wed 29 Jan 2020 06:46:36 PM UTC, original submission:  

To reproduce, run:


src/nano --ignore --restricted --locking README


Then check in another terminal and see that a .README.swp was created.  This is not good.  Nano suppresses the reading and writing of history files when in restricted mode, probably it should also suppress writing lock files in that mode?

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

    Date Changed by Updated Field Previous Value => Replaced by
    2020-10-08 bens Open/ClosedOpen Closed
    2020-09-27 bens StatusPostponed Wont Fix
        Assigned tobens None
    2020-02-09 bens StatusNone Postponed
    2020-02-03 bens Severity3 - Normal 2 - Minor

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code