emacs-devel
[Top][All Lists]
Advanced

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

ange-ftp bug


From: Katsumi Yamaoka
Subject: ange-ftp bug
Date: Tue, 19 Feb 2008 21:37:45 +0900
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux)

Hi,

After this change

2008-02-13  Michael Albinus  <address@hidden>

        * net/ange-ftp.el (ange-ftp-quote-string): Use `shell-quote-argument'.
        This DTRT even on w32 machines.
        (ange-ftp-cf1): Quote FILENAME.

I am annoyed with the strange behavior of dired when accessing
the remote directory.  The ftp session gotten when I accessed
"/address@hidden:~/bin/" is below.  Note that the directory
actually accessed is "/home/yamaoka/mark/bin/".  I'm not sure
where "mark" comes from, but it might have been gotten from
the "Hash mark printing" line mistakenly.

OTOH, the former `ange-ftp-quote-string' function returns the
null string when the argument is nil while the present one
returns nil.  And modifying it into

(defun ange-ftp-quote-string (string)
  (if (stringp string)
      (shell-quote-argument string)
    ""))

solves the problem, though I don't know why it does the trick.
Could anyone please fix it properly?  Thanks.

331-(220---------- Welcome to Pure-FTPd [TLS] ----------)
331-(220-You are user number 2 of 50 allowed.)
331-(220-Local time is now 06:21. Server port: 21.)
331-(220 You will be disconnected after 15 minutes of inactivity.)
331 User yamaoka OK. Password required
230-User yamaoka has group access to:  yamaoka 
230 OK. Current restricted directory is /
hash
202 Please tell me who you are
pwd
ftp> Hash mark printing on (1024 bytes/hash mark).
cd /home/yamaoka/mark/bin/
ftp> 257 "/" is your current location
ls -alt /tmp/ange-ftp28951swG
ftp> 550 Can't change directory to /home/yamaoka/mark/bin/: No such file or 
directory
ls -alt /tmp/ange-ftp28951swG
ftp> 227 Entering Passive Mode (43,15,125,10,168,146)
150 Connecting to port 43155
226-Options: -a -l -t
226 44 matches total
ftp> quote mdtm /home/yamaoka/mark/bin/
227 Entering Passive Mode (43,15,125,10,168,150)
150 Connecting to port 43159
226-Options: -a -l -t
226 44 matches total
ftp> 500 command not understood
quote mdtm /home/yamaoka/mark/bin/
ftp> 500 command not understood




reply via email to

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