bugGNU nano - Bugs: bug #48286, awkward behaviour when trying to...

 
 

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

bug #48286: awkward behaviour when trying to open inaccessible directory using goto prompt

Submitter:  Rishabh Dave <prongs>
Submitted:  Tue 21 Jun 2016 01:09:34 PM UTC
   
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Wed 29 Jun 2016 01:35:46 PM UTC, comment #3: 

Released.

Benno Schulenberg <bens>
Group administrator
Sun 26 Jun 2016 02:55:36 PM UTC, comment #2: 

Fixed in git, 559858a.

Thanks for working on this.

Benno Schulenberg <bens>
Group administrator
Tue 21 Jun 2016 02:21:50 PM UTC, comment #1: 

When typing <Enter> after step 5, it says "Cannot open directory: Permission denied", but... it does go there.  That is what goes wrong.  Anything that happens after that is a result of going somewhere when it said it couldn't go there.

What is it the expected behavior?  I would say: when typing <Enter> at step 5, it should give that message, stay where it is, and put the "cursor" (the selection bar) on the relevant element -- in this case: on "noa".  Do you agree?

Benno Schulenberg <bens>
Group administrator
Tue 21 Jun 2016 01:09:34 PM UTC, original submission:  

Following reproduction recipe is written in steps with respect to current working directory as git repository -

1. mkdir noa && touch noa/a && chmod a-x noa
2. (run make command if necessary and then) src/nano
3. ^R ^T (open the browser)
4. M-G (open goto dir prompt)
5. type - "noa"
6. Now screen displays parent directory ".." and file "a" that we created.
7. Hitting enter on ".." would lead to parent directory of git repo instead of noa's parent directory. This behaviour is awkward.

Also, selecting file "a" leads to error -  "....nano/a: No such file or directory".

Initially, before bug #48007: segmentation fault when trying to browse to an inaccessible directory, it used to segfault too but with fix for that bug it does this in segfault's stead.

Rishabh Dave <prongs>

 

(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 (Posted a comment)
  • -email is unavailable- added by prongs (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
    2016-06-29 bens Open/ClosedOpen Closed
    2016-06-26 bens StatusIn Progress Fixed
    2016-06-25 bens StatusNone In Progress
        Assigned toNone bens
    2016-06-21 bens Summaryawkward behaviour when trying to open inaccessible directory using goto prompt in browser awkward behaviour when trying to open inaccessible directory using goto prompt

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code