GNU bug report logs - #2410
23.0.90; tramp: spurious ftp-error

Previous Next

Package: emacs;

Reported by: Stephen Berman <stephen.berman <at> gmx.net>

Date: Fri, 20 Feb 2009 16:30:03 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


Message #47 received at 2410 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Stephen Berman <stephen.berman <at> gmx.net>
To: Juri Linkov <juri <at> jurta.org>
Cc: 2410 <at> debbugs.gnu.org, Chong Yidong <cyd <at> stupidchicken.com>
Subject: Re: bug#2410: 23.0.90; tramp: spurious ftp-error
Date: Tue, 24 Feb 2009 01:00:00 +0100
On Sun, 22 Feb 2009 21:04:14 +0200 Juri Linkov <juri <at> jurta.org> wrote:

>> Does this fix it?
>>
>> *** trunk/lisp/net/ange-ftp.el.~1.102.~	2009-01-06 15:29:22.000000000 -0500
>> --- trunk/lisp/net/ange-ftp.el	2009-02-22 13:16:25.000000000 -0500
>> ***************
>> *** 4478,4484 ****
>>          ;; then do an ls of current dir, which obviously won't work if we
>>          ;; want to ls a file.  So instead, we get a full listing of the
>>          ;; parent directory and extract the line corresponding to `file'.
>> !        (when (string-match "d\\'" switches)
>>            ;; Remove "d" which dired added to `switches'.
>>            (setq switches (substring switches 0 (match-beginning 0))))
>>          (let* ((dirlist (ange-ftp-ls (or (file-name-directory file) ".")
>> --- 4478,4484 ----
>>          ;; then do an ls of current dir, which obviously won't work if we
>>          ;; want to ls a file.  So instead, we get a full listing of the
>>          ;; parent directory and extract the line corresponding to `file'.
>> !        (when (string-match "-?d\\'" switches)
>>            ;; Remove "d" which dired added to `switches'.
>>            (setq switches (substring switches 0 (match-beginning 0))))
>>          (let* ((dirlist (ange-ftp-ls (or (file-name-directory file) ".")
>
> Thanks, it works.  I'd also ask Stephen to confirm this fixes his
> original bug report.

Sorry for the belated response, but I can indeed confirm that this
eliminates the spurious ftp-error message.  Many thanks for quickly
finding the source of the problem!

Steve Berman




This bug report was last modified 16 years and 94 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.