Hi, I am having problems with lftp's filename completion. When I press <TAB>, the program segfaults in a somewhat predictable manner. Does anyone have the same problem? If there are more people with this problem, should I file a bug report against lftp? I think it should at least have severity 'important', so I first want to be sure that this is a real bug.
I am using lftp 0.14.3.980328-1 This is the output from 'ldd /usr/bin/lftp': libreadline.so.2 => /lib/libreadline.so.2 (0x40010000) libncurses.so.3.4 => /lib/libncurses.so.3.4 (0x4003b000) libresolv.so.2 => /lib/libresolv.so.2 (0x40080000) libnsl.so.1 => /lib/libnsl.so.1 (0x4008e000) libc.so.6 => /lib/libc.so.6 (0x40094000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) These libraries come from these packages: libreadlineg2 2.1-8 ncurses3.4 1.9.9g-8 libc6 2.0.7pre1-4 Below are some transcripts to illustrate what I mean ("<TAB>" means I pressed the TAB key): 1 [EMAIL PROTECTED]:~]$ lftp snt lftp snt:~> ls total 30 drwxr-xr-x 9 root root 1024 Dec 21 10:51 . drwxr-xr-x 9 root root 1024 Dec 21 10:51 .. d--x--x--x 2 root root 1024 Mar 31 16:28 bin d--x--x--x 2 root root 1024 Nov 25 10:47 etc drwxrwxrwx 3 ftpadm ftpadm 1024 Apr 7 11:48 incoming d--x--x--x 2 root root 1024 Jun 8 1997 lib drwxr-x--- 4 ftpadm local 1024 Feb 12 20:34 local drwxr-xr-x 2 root root 12288 Jul 4 1997 lost+found drwxrwxr-x 10 root ftpadm 1024 Apr 8 03:30 pub -rw-r--r-- 1 ftpadm ftpadm 784 Dec 18 12:30 welcome.msg -rw-r--r-- 1 ftpadm ftpadm 9022 Apr 8 04:05 xferstat.txt lftp snt:~> cd a<TAB><TAB>Segmentation fault (core dumped) 2 [EMAIL PROTECTED]:~]$ lftp snt lftp snt:~> cd p<TAB>ub/ cd ok, cwd=/pub lftp snt:/pub> ls total 1759 drwxrwxr-x 10 root ftpadm 1024 Apr 8 03:30 . drwxr-xr-x 9 root root 1024 Dec 21 10:51 .. drwxrwxr-x 12 florian ftpadm 1024 Dec 14 16:19 dos drwxrwxr-x 14 ftpadm ftpadm 1024 Apr 2 21:52 linux -rw-r--r-- 1 ftpadm ftpadm 1716862 Apr 8 03:31 ls-lR drwxrwxr-x 31 x10 ftpadm 1024 Dec 14 16:20 macintosh -rw-rw-r-- 1 mark ftpadm 560 Mar 31 16:36 mirrors.txt drwxrwxr-x 6 ftpadm ftpadm 1024 Mar 31 23:11 misc -rw-rw-r-- 1 1119 ftpadm 6707 Apr 7 12:58 newfiles -rw-rw-r-- 1 ftpadm ftpadm 8165 Aug 29 1996 newfiles.1995 -rw-rw-r-- 1 ftpadm ftpadm 36575 Nov 5 19:01 newfiles.1996 -rw-rw-r-- 1 ftpadm ftpadm 9422 Jan 1 17:21 newfiles.1997 drwxrwxr-x 6 ftpadm ftpadm 1024 Dec 14 16:19 nt4 drwxrwxr-x 9 fornerod ftpadm 1024 Dec 6 1996 os2 -rw-rw-r-- 1 ftpadm ftpadm 792 Dec 21 16:58 uploads.txt drwxrwxr-x 13 ftpadm ftpadm 1024 Mar 26 23:21 win3 drwxrwxr-x 14 ftpadm ftpadm 1024 Mar 15 23:12 win95 lftp snt:/pub> cd wi<TAB>n9<TAB>Segmentation fault (core dumped) 3 [EMAIL PROTECTED]:~]$ lftp snt lftp snt:~> cd p<TAB>ub/li<TAB>nux/d<TAB>eb<TAB>Segmentation fault (core dumped) 4 [EMAIL PROTECTED]:~]$ lftp snt lftp snt:~> ls p<TAB>Segmentation fault (core dumped) 5 [EMAIL PROTECTED]:~]$ lftp snt lftp snt:~> cd p<TAB>ub/ cd ok, cwd=/pub lftp snt:/pub> ls l<TAB>inux total 17 drwxrwxr-x 14 ftpadm ftpadm 1024 Apr 2 21:52 . drwxrwxr-x 10 root ftpadm 1024 Apr 8 03:30 .. -rw-rw-r-- 1 ftpadm ftpadm 433 Jan 14 16:30 00index.txt drwxrwxr-x 14 ftpadm ftpadm 1024 Mar 29 02:11 Slackware drwxrwxr-x 3 ftpadm ftpadm 1024 Apr 2 21:57 X drwxrwxr-x 2 ftpadm ftpadm 1024 Feb 11 1997 anti4us drwxrwxr-x 12 ftpadm ftpadm 1024 Apr 8 02:02 debian drwxrwxr-x 2 1117 ftpadm 1024 Feb 4 16:49 devel -rw-rw-r-- 1 ftpadm ftpadm 1187 Oct 16 1996 ftp-sources drwxrwxr-x 5 ftpadm ftpadm 1024 Dec 14 00:51 kernels drwxrwxr-x 2 ftpadm ftpadm 1024 Apr 2 22:00 network drwxrwxr-x 2 1117 ftpadm 1024 Apr 2 21:52 programs drwxrwxr-x 5 ftpadm ftpadm 1024 Apr 8 02:09 redhat drwxrwxr-x 5 ftpadm ftpadm 1024 Feb 23 03:35 redhat-contrib drwxrwxr-x 2 ftpadm ftpadm 1024 Apr 2 22:00 samba lrwxrwxrwx 1 root root 10 Jul 4 1997 slackware -> Slackware/ drwxrwxr-x 5 ftpadm ftpadm 1024 Oct 16 1996 www What happens is this: 1. In the first case, there is nothing that starts with the letter 'a'. I press <TAB> twice and get a segfault. 2. In the second case, there is one thing that starts with a 'p' and it gets completed normally. In /pub, there are two things that start with 'wi', win3 and win95. I type 'wi', press <TAB>, it becomes 'win', I type '9' and press <TAB> again and then I get the segfault. 3. In this case, I type 'p<TAB>li<TAB>d<TAB>b<TAB>' and then get the segfault. In /pub/linux there are two things that start with 'd', 'debian' and 'devel'. So, when I have '/pub/linux/de', I type 'b<TAB>' and then get a segfault. 4. Now I am using another command. I type 'ls p<TAB>' and get the segfault, even though there is exactly one thing that starts with 'p'. 5. This seems the same as 4., only this time I am in aother directory. This puzzles me. Remco -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]