Package: nano
Version: 2.0.2-1
Editing a file called ~data/diary-full works fine, but saving it causes a
segmentation fault.
Steps to invoke:
1) create a directory called ~data (mkdir ~data)
2) create a file and edit it (nano ~data/diary-full)
3) edit the file (make any changes you like)
4) start to save the file (ctrl-X)
5) agree to saving the file (press 'Y' at the save prompt)
5) you will be prompted for a filename, as usual, so accept (press return)
6) observe a segmentation fault
Tests indicate that the name of the file within the ~data directory is not
important.
However, the name of the directory may be significant. Renaming ~data to
~t and attempting the same process generates the error :
[ Error writing /nonexistent/diary-full: No such file or directory ]
Using ~dd as the directory name fails with a segmentation fault.
Using ~d as the directory name fails with :
[ Error writing /usr/sbin/diary-full: Permission denied ]
(yes, this is the correct error report - it's picked up /usr/sbin/ for no
apparent reason)
As the files load correctly from a directory starting with a tilde, and as
there are no users of the given name, I would expect the editor to edit
the files and save them correctly. The above invention of obscure system
directory names (in this case /usr/sbin/) would seem to have been highly
irregular - if the user had attempted to edit ~d/tcpdump (or any other
name which is also the name of an executable in /usr/sbin) and saved the
file back (with the correct user permissions) then the executable file
would have been erased, almost silently.
uname -a gives:
Linux buttercup 2.6.18-4-486 #1 Mon Mar 26 16:39:10 UTC 2007 i686 GNU/Linux
I dist-update'd last night from last stable to the new stable. Old nano
worked just fine. This doesn't seem so stable to me.
--
Gerph <http://gerph.org/>
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]