From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: tramp 2.1.13-pre messed up symbolic link? Date: Mon, 23 Jun 2008 12:26:09 +0200 Message-ID: References: <87bq1v18ux.fsf@gmx.de> <8d61170c0806220203h75885df3nf6283e13c6d3732c@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1214217124 1566 80.91.229.12 (23 Jun 2008 10:32:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Jun 2008 10:32:04 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Yang Zhang" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 23 12:32:49 2008 Return-path: Envelope-to: geh-help-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 1KAjLp-0002UZ-TX for geh-help-gnu-emacs@m.gmane.org; Mon, 23 Jun 2008 12:32:46 +0200 Original-Received: from localhost ([127.0.0.1]:53385 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KAjL0-00087W-DI for geh-help-gnu-emacs@m.gmane.org; Mon, 23 Jun 2008 06:31:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KAjEL-0006Ku-Lf for help-gnu-emacs@gnu.org; Mon, 23 Jun 2008 06:25:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KAjEJ-0006KA-RT for help-gnu-emacs@gnu.org; Mon, 23 Jun 2008 06:25:01 -0400 Original-Received: from [199.232.76.173] (port=39756 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KAjEI-0006K0-On for help-gnu-emacs@gnu.org; Mon, 23 Jun 2008 06:24:59 -0400 Original-Received: from mailrelay2.alcatel.de ([194.113.59.96]:49350) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KAjEH-0004TC-DE for help-gnu-emacs@gnu.org; Mon, 23 Jun 2008 06:24:57 -0400 Original-Received: from slbhab.alcatel.de (slbhab.bln.sel.alcatel.de [149.204.63.218]) by mailrelay2.alcatel.de (8.13.8/8.13.8/ICT) with ESMTP id m5NAOd8W015042; Mon, 23 Jun 2008 12:24:39 +0200 In-Reply-To: <8d61170c0806220203h75885df3nf6283e13c6d3732c@mail.gmail.com> (Yang Zhang's message of "Sun, 22 Jun 2008 04:03:39 -0500") User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (hpux) X-Scanned-By: MIMEDefang 2.57 on 149.204.45.73 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:55047 Archived-At: --=-=-= "Yang Zhang" writes: > Hello Michael, Hi, > Thank you for your attention and help. The pre-installed tramp > 2.1.13-pre with my emacs 23.0.60.1 is also having the symbolic > problem. Here I attached the tramp debug buffer output. The other > buffer "tramp /scp host*" is empty. Thanks for the traces, they have been helpful. Please try the appended patch (towards 2.1.14-pre), it shall fix the problem. > Thank you very much, > > --Yang Best regards, Michael. --=-=-= Content-Disposition: attachment *** /tmp/tramp.el Mon Jun 23 12:20:57 2008 --- /tmp/tramp.el20502jTz Mon Jun 23 12:20:57 2008 *************** *** 6613,6621 **** (unless (stringp (nth 8 attr)) (setcar (nthcdr 8 attr) (tramp-file-mode-from-int (nth 8 attr)))) ;; Convert directory indication bit. ! (if (string-match "^d" (nth 8 attr)) ! (setcar attr t) ! (if (and (listp (car attr)) (stringp (caar attr)) (string-match ".+ -> .\\(.+\\)." (caar attr))) (setcar attr (match-string 1 (caar attr))) (setcar attr nil))) --- 6613,6623 ---- (unless (stringp (nth 8 attr)) (setcar (nthcdr 8 attr) (tramp-file-mode-from-int (nth 8 attr)))) ;; Convert directory indication bit. ! (when (string-match "^d" (nth 8 attr)) ! (setcar attr t)) ! ;; Convert symlink from `tramp-handle-file-attributes-with-stat'. ! (when (consp (car attr)) ! (if (and (stringp (caar attr)) (string-match ".+ -> .\\(.+\\)." (caar attr))) (setcar attr (match-string 1 (caar attr))) (setcar attr nil))) --=-=-=--