From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.devel Subject: ange-ftp bug Date: Tue, 19 Feb 2008 21:37:45 +0900 Organization: Emacsen advocacy group Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1203424709 2707 80.91.229.12 (19 Feb 2008 12:38:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Feb 2008 12:38:29 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 19 13:38:54 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JRRkF-0005N9-S0 for ged-emacs-devel@m.gmane.org; Tue, 19 Feb 2008 13:38:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JRRjl-000422-4G for ged-emacs-devel@m.gmane.org; Tue, 19 Feb 2008 07:38:17 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JRRjg-00041k-Vl for emacs-devel@gnu.org; Tue, 19 Feb 2008 07:38:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JRRjf-000419-5b for emacs-devel@gnu.org; Tue, 19 Feb 2008 07:38:12 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JRRjf-000416-0M for emacs-devel@gnu.org; Tue, 19 Feb 2008 07:38:11 -0500 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JRRje-0003n1-C3 for emacs-devel@gnu.org; Tue, 19 Feb 2008 07:38:10 -0500 Original-Received: from [66.225.201.151] (port=49732 helo=mail.jpl.org) by orlando.hostforweb.net with esmtpa (Exim 4.68) (envelope-from ) id 1JRRja-00052I-9T for emacs-devel@gnu.org; Tue, 19 Feb 2008 06:38:07 -0600 X-Hashcash: 1:20:080219:emacs-devel@gnu.org::wlySH1m3DCgjnrln:0000000000000000000000000000000000000000003LqZ X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:h65ChuO/TN4jtniVSn6U2FuDvNQ= X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:89567 Archived-At: Hi, After this change 2008-02-13 Michael Albinus * 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 "/yamaoka@jpl.org:~/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