[Top][All Lists]

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

[Nano-devel] do_browse_from() bugs.

From: David Benbennick
Subject: [Nano-devel] do_browse_from() bugs.
Date: Tue, 28 Jan 2003 15:36:59 -0500
User-agent: Mutt/

Do ^R, type /does/not/exist, then ^T.  Hitting Enter will crash Nano.

Also, make an unreadable directory.  Enter its path at the Insert File
prompt, then do ^T.  Again, the browser is mucked up and will crash.

The operating directory was not checked when opening the file browser. 
With nano -o $PWD, you can type /foo/ at the prompt, then do ^T to open
the file browser.

Finally, if you just type a directory name at the prompt (for example from
the Nano CVS directory, type "po") the browser should open there.

These bugs are fixed by changing do_browse_from().  I had to add a
function readable_dir() to check whether a directory can be opened.

Attachment: dobrowse.patch
Description: Text document

Attachment: pgpWe7eSbzqqt.pgp
Description: PGP signature

reply via email to

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