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: Tue, 7 Jun 2016 21:51:08 +0530

On Sun, Jun 5, 2016 at 1:59 PM, Benno Schulenberg
<address@hidden> wrote:
>
> What else can go wrong?
>
Okay... found two things -

First, accessing directory noaccess using M-T option ("Go To
Directory"-prompt) leads to segfault (since we don't set newpath). I
chose removing opendir from there because otherwise it was adding more
redundancies. Code is in attached patch -
"no1-replace-new_path-by-newpath-remove-opendir-there.patch"

Second, accessing a directory with no read permission lead to jump of
selection to "..". Rearranging code took care of it. Code is in
attached patch -
"no2-keep-selection-when-file-has-no-read-permit.patch"

There is a third patch, attached, that adds a comment. After writing
the comment, I realized it should be avoided to reopen cwd after
selected directory has no access due to redundancy. Apart from
redundant reopening, it also provides an unexpected refresh to the
user (which would lead to surprise on perpetual addition/deletion of
file/dir). So... that is not, strictly speaking, correct, right? I
have attached patch just in case we don't want that. It is
"no4-dont-refresh-unnecessarily.patch".

Attachment: no1-replace-new_path-by-newpath-remove-opendir-there.patch
Description: Text Data

Attachment: no2-keep-selection-when-file-has-no-read-permit.patch
Description: Text Data

Attachment: no3-add-comment.patch
Description: Text Data

Attachment: no4-dont-refresh-unnecessarily.patch
Description: Text Data


reply via email to

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