bugGNU nano - Bugs: bug #58993, with --positionlog, the first...

 
 

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

bug #58993: with --positionlog, the first start complains about a missing history file

Submitter:  Benno Schulenberg <bens>
Submitted:  Sat 22 Aug 2020 07:46:55 AM UTC
   
 
Severity:  4 - Important Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Sat 22 Aug 2020 08:40:05 AM UTC, comment #3: 

Fixed in git, commit b60fec5d, by not complaining when statting the file returns -1.

Benno Schulenberg <bens>
Group administrator
Sat 22 Aug 2020 08:15:29 AM UTC, comment #2: 

For a successful reproduction, you first have to move your ~/.nano/filepos_history (or ~/.config/nano/filepos_history) out of the way -- of course.

Benno Schulenberg <bens>
Group administrator
Sat 22 Aug 2020 08:12:48 AM UTC, comment #1: 

Oww...  The bug is not old -- it exists since version 5.0.  The offending commit is fcb9e58b: "take into account that statting a file can fail too".

Benno Schulenberg <bens>
Group administrator
Sat 22 Aug 2020 07:46:55 AM UTC, original submission:  

To reproduce, run

src/nano --ignore --positionlog NEWS

On the status bar nano says: "Problems with history file".
Type ^X and see two identical messages:
"Error reading /home/ben/.nano/filepos_history: No such file or directory"

This must have existed for quite a while.  :|  I just never tested things in a "virgin" state.

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

    Date Changed by Updated Field Previous Value => Replaced by
    2020-08-25 bens Open/ClosedOpen Closed
    2020-08-22 bens StatusIn Progress Fixed
    2020-08-22 bens StatusNone In Progress

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code