From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: Tramp 2.0 -> 2.1 migration woes Date: Sun, 27 Jan 2008 15:57:49 +0100 Message-ID: <87myqrfh8y.fsf@gmx.de> References: <20080127040051.GA16241@Clio.twb.ath.cx> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1201445639 18253 80.91.229.12 (27 Jan 2008 14:53:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Jan 2008 14:53:59 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, rfrancoise@debian.org To: "Trent W. Buck" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 27 15:54:19 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 1JJ8tk-0004CF-PB for ged-emacs-devel@m.gmane.org; Sun, 27 Jan 2008 15:54:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JJ8tK-0006K8-8T for ged-emacs-devel@m.gmane.org; Sun, 27 Jan 2008 09:53:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JJ8tF-0006IR-MK for emacs-devel@gnu.org; Sun, 27 Jan 2008 09:53:45 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JJ8tD-0006Ha-9W for emacs-devel@gnu.org; Sun, 27 Jan 2008 09:53:44 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JJ8tD-0006HX-3C for emacs-devel@gnu.org; Sun, 27 Jan 2008 09:53:43 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JJ8tC-0005vw-S5 for emacs-devel@gnu.org; Sun, 27 Jan 2008 09:53:42 -0500 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JJ8tC-0007Vv-EF for emacs-pretest-bug@gnu.org; Sun, 27 Jan 2008 09:53:42 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JJ8t9-0005v1-BT for emacs-pretest-bug@gnu.org; Sun, 27 Jan 2008 09:53:42 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1JJ8t8-0005un-VF for emacs-pretest-bug@gnu.org; Sun, 27 Jan 2008 09:53:39 -0500 Original-Received: (qmail invoked by alias); 27 Jan 2008 14:53:37 -0000 Original-Received: from p57A23747.dip0.t-ipconnect.de (EHLO arthur.local) [87.162.55.71] by mail.gmx.net (mp053) with SMTP; 27 Jan 2008 15:53:37 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX18zOptERLAzcsrjesz7BeTAjCOSTcX3j9QkDEHhZx VYN1RtAT6w7vbo In-Reply-To: <20080127040051.GA16241@Clio.twb.ath.cx> (Trent W. Buck's message of "Sun, 27 Jan 2008 15:00:53 +1100") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:87638 gmane.emacs.pretest.bugs:20780 Archived-At: --=-=-= "Trent W. Buck" writes: > The initial hops are no longer shown in the path, nor on the first > line of dired buffers. Already I have been VERY confused because > a bad tramp-default-proxies-alist resulted in no proxy being used for > > /sudo:root@leek:/etc > > ...so that instead of editing leek's /etc as root, I was editing my > laptop's /etc as root! Since the path claims that I'm on root@leek, I > would have made disastrous changes to my local system if I hadn't > noticed that there was no /etc/ssh/sshd_config (because sshd is not > installed on my laptop). The appended patch shall fix it. Could you, please, test? Best regards, Michael. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment *** /home/albinus/src/tramp/lisp/tramp.el.~2.624.~ 2008-01-26 15:19:11.000000000 +0100 --- /home/albinus/src/tramp/lisp/tramp.el 2008-01-27 15:43:19.000000000 +0100 *************** *** 6052,6057 **** --- 6052,6078 ---- "Method `%s' is not supported for multi-hops." (tramp-file-name-method item))))) + ;; In case the host name is not used for the remote shell + ;; command, the user could be misguided by applying a random + ;; hostname. + (let* ((v (car target-alist)) + (method (tramp-file-name-method v)) + (host (tramp-file-name-host v))) + (unless + (or + ;; There are multi-hops. + (cdr target-alist) + ;; The host name is used for the remote shell command. + (member + '("%h") (tramp-get-method-parameter method 'tramp-login-args)) + ;; The host is local. We cannot use `tramp-local-host-p' + ;; here, because it opens a connection as well. + (string-match + (concat "^" (regexp-opt (list "localhost" (system-name)) t) "$") + host)) + (tramp-error + v 'file-error "Wrong hostname `%s' for method `%s'" host method))) + ;; Result. target-alist)) --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --=-=-=--