<<< Date Index >>>     <<< Thread Index >>>

Re: Fwd: Bug#237426: mutt: Mutt segfaults when trying to attach from an inaccessible directory



On Fri, May 14, 2004 at 10:26:18AM +0200, Adeodato Sim???? wrote:
>   i can't reproduce that segfault. if you can provide instructions,

Then, I might have done something wrong.
Although I've already removed my testing code tree,
I possibly did (1) found the following problem,
(2) tried to fix it, and (3) introduce segmentation fault.
Sorry for the wrong information. I was foolish.

>   please do so. what *does* happen is that after hitting an unreadable
>   directory, browser mode is left and you return to the mailbox(1) OR,
>   if you had started via e.g. mutt -y, mutt exits without time for
>   reading the error. i don't think this is desirable.
> 
>   (1) and, as the last directory is remembered, you can't ever return to
>       browser mode again.

That's avoided if you do not strfcpy(LastDir,buf,sizeof(LastDir)).
With my patch, mutt keeps browser mode.
But, I tried to chdir to an unreadable directory
(e.g. pushing "c/root\n") via "mutt -y"
and found a segfault. I was wrong here, too.

Please wait for REAL developers' answer.