From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#2410: 23.0.90; tramp: spurious ftp-error Date: Sun, 22 Feb 2009 21:04:14 +0200 Organization: JURTA Message-ID: <87prhamgy9.fsf@jurta.org> References: <87hc2nkf40.fsf@cyd.mit.edu> <877i3itq52.fsf@jurta.org> <87eixqsa3m.fsf@jurta.org> <87ab8ez65h.fsf@cyd.mit.edu> Reply-To: Juri Linkov , 2410@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1235330650 5954 80.91.229.12 (22 Feb 2009 19:24:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 Feb 2009 19:24:10 +0000 (UTC) Cc: Stephen Berman , 2410@emacsbugs.donarmstrong.com To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 22 20:25:22 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LbJx3-0002hk-IP for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Feb 2009 20:25:21 +0100 Original-Received: from localhost ([127.0.0.1]:58095 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LbJvj-0001MW-3c for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Feb 2009 14:23:59 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LbJvR-00017Q-J9 for bug-gnu-emacs@gnu.org; Sun, 22 Feb 2009 14:23:41 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LbJvP-000150-Hp for bug-gnu-emacs@gnu.org; Sun, 22 Feb 2009 14:23:40 -0500 Original-Received: from [199.232.76.173] (port=33914 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LbJvP-00014g-Ce for bug-gnu-emacs@gnu.org; Sun, 22 Feb 2009 14:23:39 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:51251) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LbJvO-0007mz-Ui for bug-gnu-emacs@gnu.org; Sun, 22 Feb 2009 14:23:39 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1MJNaGL006231; Sun, 22 Feb 2009 11:23:37 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n1MJF5FI004151; Sun, 22 Feb 2009 11:15:05 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Juri Linkov Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 22 Feb 2009 19:15:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2410 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 2410-submit@emacsbugs.donarmstrong.com id=B2410.12353296772642 (code B ref 2410); Sun, 22 Feb 2009 19:15:05 +0000 Original-Received: (at 2410) by emacsbugs.donarmstrong.com; 22 Feb 2009 19:07:57 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from relay03.kiev.sovam.com (relay03.kiev.sovam.com [62.64.120.201]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1MJ7reX002630 for <2410@emacsbugs.donarmstrong.com>; Sun, 22 Feb 2009 11:07:54 -0800 Original-Received: from [83.170.232.243] (helo=smtp.svitonline.com) by relay03.kiev.sovam.com with esmtp (Exim 4.69) (envelope-from ) id 1LbJg8-000NsW-Mh; Sun, 22 Feb 2009 21:07:52 +0200 In-Reply-To: <87ab8ez65h.fsf@cyd.mit.edu> (Chong Yidong's message of "Sun, 22 Feb 2009 13:19:06 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (x86_64-pc-linux-gnu) X-Scanner-Signature: d0b3bc0b24c4067239780ad28ae5b444 X-DrWeb-checked: yes X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sun, 22 Feb 2009 14:23:40 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:25602 Archived-At: > 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. -- Juri Linkov http://www.jurta.org/emacs/