nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] segmentation fault when trying to browse to an inaccess


From: Rishabh Dave
Subject: Re: [Nano-devel] segmentation fault when trying to browse to an inaccessible directory
Date: Sun, 12 Jun 2016 22:07:34 +0530

There is one scenario where I felt a message will be /better/ even
though things might self-evident. (The recipe is at the end, in words:
) If we run src/nano, open the browser, with second terminal remove
access permission for entire nano repo and then if we continue to
browse in (first terminal's) nano's browser info becomes "--" for
every directory/file that gets highlighted. We could print a message
like "Lost permission for current directory". However, printing
happens on browser_refresh() which operates only on filelist, so it is
difficult to know there that we have lost permission to one, multiple
or all files in there. I did try but wasn't successful in my limited
time. (Neither I know if it is that useful.)

Recipe:
In first terminal where path is git repo,
src/nano
^R^T

On second terminal where path is parent directory of git repo,
chmod a-x nano

In first terminal ,
Now changing selection makes info "--" which show "(dir)" for
directories and size for files.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]