[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ange-ftp bug
From: |
Michael Albinus |
Subject: |
Re: ange-ftp bug |
Date: |
Tue, 03 Feb 2004 20:56:26 +0100 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (gnu/linux) |
Katsumi Yamaoka <address@hidden> writes:
> Hi,
Hi,
> Another problem is caused by performing chroot in the remotehost.
Likely, this problem has been overlooked due to the other one you've
explained in the message.
> It also occurs if the pathname of the home directories are
> different between the localhost and the remotehost. When I
> perform dired to /ftp:address@hidden:~/, Emacs accesses
> /ftp:address@hidden:(The name of the local home directory).
> It can be verified even with anonymous ftp sites:
>
> (dired "/ftp:ftp.gnu.org:~/)
I can confirm that the problem still exists. Simple test:
(ange-ftp-expand-file-name "/ftp.gnu.org:~/")
"/ftp.gnu.org:/"
(ange-ftp-expand-file-name "/ftp.gnu.org:~")
"/ftp.gnu.org:/home/albinus"
The same result with Emacs 21.3 and its companion ange-ftp.
> My solution for the problem is below:
>
> *** ange-ftp.el~ Mon Jan 5 13:58:18 2004
> --- ange-ftp.el Fri Jan 23 12:55:58 2004
> ***************
> *** 3095,3101 ****
> (dir (ange-ftp-expand-dir host user tilda)))
> (if dir
> (setq name (if (string-equal dir "/")
> ! rest (concat dir rest)))
> (error "User \"%s\" is not known"
> (substring tilda 1)))))
>
> --- 3095,3104 ----
> (dir (ange-ftp-expand-dir host user tilda)))
> (if dir
> (setq name (if (string-equal dir "/")
> ! (if (string-equal rest "")
> ! dir
> ! rest)
> ! (concat dir rest)))
> (error "User \"%s\" is not known"
> (substring tilda 1)))))
>
> Regards,
Best regards, Michael.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: ange-ftp bug,
Michael Albinus <=