From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#2410: 23.0.90; tramp: spurious ftp-error Date: Tue, 24 Feb 2009 01:00:00 +0100 Message-ID: <87wsbg901r.fsf@escher.local.home> References: <87hc2nkf40.fsf@cyd.mit.edu> <877i3itq52.fsf@jurta.org> <87eixqsa3m.fsf@jurta.org> <87ab8ez65h.fsf@cyd.mit.edu> <87prhamgy9.fsf@jurta.org> Reply-To: Stephen Berman , 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 1235435033 8112 80.91.229.12 (24 Feb 2009 00:23:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Feb 2009 00:23:53 +0000 (UTC) Cc: Chong Yidong , 2410@emacsbugs.donarmstrong.com To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 24 01:25:08 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 1Lbl6i-00004t-5q for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Feb 2009 01:25:08 +0100 Original-Received: from localhost ([127.0.0.1]:45368 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lbl5N-0005Zs-DE for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Feb 2009 19:23:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lbl5J-0005Zd-1X for bug-gnu-emacs@gnu.org; Mon, 23 Feb 2009 19:23:41 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lbl5H-0005ZR-K5 for bug-gnu-emacs@gnu.org; Mon, 23 Feb 2009 19:23:40 -0500 Original-Received: from [199.232.76.173] (port=56597 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lbl5H-0005ZO-Ec for bug-gnu-emacs@gnu.org; Mon, 23 Feb 2009 19:23:39 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:45336) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lbl5H-0005m9-0q for bug-gnu-emacs@gnu.org; Mon, 23 Feb 2009 19: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 n1O0NbV6024832; Mon, 23 Feb 2009 16:23:37 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n1O0A4lS021460; Mon, 23 Feb 2009 16:10:04 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stephen Berman Original-Sender: steve@escher.local.home Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 24 Feb 2009 00:10:04 +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.123543361419071 (code B ref 2410); Tue, 24 Feb 2009 00:10:04 +0000 Original-Received: (at 2410) by emacsbugs.donarmstrong.com; 24 Feb 2009 00:00:14 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id n1O009BR018307 for <2410@emacsbugs.donarmstrong.com>; Mon, 23 Feb 2009 16:00:11 -0800 Original-Received: (qmail invoked by alias); 24 Feb 2009 00:00:03 -0000 Original-Received: from i59F56EFA.versanet.de (EHLO escher.local.home) [89.245.110.250] by mail.gmx.net (mp017) with SMTP; 24 Feb 2009 01:00:03 +0100 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX1/izJJgflDirFwLh+388M8tud+2Fa2FiSL9HCMif9 OGQkMe/XgkdEzQ Original-Received: by escher.local.home (Postfix, from userid 1000) id 2FD5D1D1205; Tue, 24 Feb 2009 01:00:01 +0100 (CET) In-Reply-To: <87prhamgy9.fsf@jurta.org> (Juri Linkov's message of "Sun, 22 Feb 2009 21:04:14 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (gnu/linux) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.57 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Mon, 23 Feb 2009 19: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:25641 Archived-At: On Sun, 22 Feb 2009 21:04:14 +0200 Juri Linkov 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