From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#28264: Accessing source directory through symlink produces false warnings Date: Wed, 30 Aug 2017 10:37:05 +0200 Message-ID: <87fuc9e9ji.fsf@detlef> References: <8fo9qzeei7.fsf@fencepost.gnu.org> <6cd94296-2dd5-ac88-185b-ed7d5d8e5533@cs.ucla.edu> <87378a9kds.fsf@detlef> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1504083612 14950 195.159.176.226 (30 Aug 2017 09:00:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 30 Aug 2017 09:00:12 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 28264@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 30 11:00:00 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dmyqp-0003F4-OI for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Aug 2017 10:59:55 +0200 Original-Received: from localhost ([::1]:49156 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dmyqw-00066J-Ok for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Aug 2017 05:00:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36123) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dmyVi-0002oV-7g for bug-gnu-emacs@gnu.org; Wed, 30 Aug 2017 04:38:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dmyVe-0005d3-Ad for bug-gnu-emacs@gnu.org; Wed, 30 Aug 2017 04:38:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52813) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dmyVe-0005cv-7j for bug-gnu-emacs@gnu.org; Wed, 30 Aug 2017 04:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dmyVd-0004J8-RZ for bug-gnu-emacs@gnu.org; Wed, 30 Aug 2017 04:38:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <8fo9qzeei7.fsf@fencepost.gnu.org> Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Aug 2017 08:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28264 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28264-submit@debbugs.gnu.org id=B28264.150408224016501 (code B ref 28264); Wed, 30 Aug 2017 08:38:01 +0000 Original-Received: (at 28264) by debbugs.gnu.org; 30 Aug 2017 08:37:20 +0000 Original-Received: from localhost ([127.0.0.1]:33261 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dmyUx-0004I4-Oc for submit@debbugs.gnu.org; Wed, 30 Aug 2017 04:37:19 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:57768) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dmyUw-0004Hq-8L for 28264@debbugs.gnu.org; Wed, 30 Aug 2017 04:37:18 -0400 Original-Received: from detlef.gmx.de ([212.86.61.201]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Lm7MT-1dEBm62H1F-00ZgTY; Wed, 30 Aug 2017 10:37:07 +0200 X-Provags-ID: V03:K0:6tTNlMNdBP1QUeUaiasmsaBG4A2FqzwCZ1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gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:136371 Archived-At: Paul Eggert writes: Hi Paul, > The problem I was thinking of does not seem to be covered by Tramp > tests. If, for example, I do these shell commands: > > $ ln -s "../penguin:motd" /tmp/foo > $ ls -l /tmp/foo > lrwxrwxrwx 1 eggert eggert 15 Aug 29 19:00 /tmp/foo -> ../penguin:motd > > then (file-truename "/tmp/foo") returns "/penguin:motd" which is not > /tmp/foo's true name as far as Emacs file-oriented commands are > concerned. It is. "/penguin:motd" is not a remote file name by default (it would be only with Tramp's simplified syntax). But this is rather academical; "/penguin:motd:" would be a remote file name. So let's continue with this example. I've changed the link: # ls -l /tmp/foo lrwxrwxrwx 1 albinus albinus 16 Aug 30 10:10 /tmp/foo -> ../penguin:motd: The problem in returning a remote file name still exists, maybe you could check your change, again? (file-truename "/tmp/foo") goes remote to "/penguin:motd:". For Tramp, we have (file-truename "/ssh::/tmp/foo") => "/ssh:hostname:/penguin:motd:" This is not wrong, but I'd prefer to get its quoted variant "/ssh:hostname:/:/penguin:motd:". Will work on this. And I'll add your test to tramp-tests.el. Best regards, Michael.