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#28156: Emacs quietly munges symlink contents Date: Sat, 26 Aug 2017 15:16:13 +0200 Message-ID: <87valaeag2.fsf@detlef> References: <68b2e6ef-bf0b-ebcf-c577-d296952d593f@cs.ucla.edu> <83pobqcnlf.fsf@gnu.org> <83h8x2ckqn.fsf@gnu.org> <83bmnacaob.fsf@gnu.org> <1fafa4ea-424e-53c5-3c91-6dd18fe47f1e@cs.ucla.edu> <83bmn8by40.fsf@gnu.org> <5963ac31-06cc-7784-bf21-46b76bd77c51@cs.ucla.edu> <87tw10qcwz.fsf@detlef> <787f2dca-7135-3da5-4516-99d12ecf8edd@cs.ucla.edu> <87a82p8abu.fsf@detlef> <732853c9-87db-e108-edb9-cf581fc62e67@cs.ucla.edu> <87h8wvlssi.fsf@detlef> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1503753431 17477 195.159.176.226 (26 Aug 2017 13:17:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 26 Aug 2017 13:17:11 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: p.stephani2@gmail.com, 28156@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 26 15:17:05 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 1dlaxU-0004Ds-Me for geb-bug-gnu-emacs@m.gmane.org; Sat, 26 Aug 2017 15:17:04 +0200 Original-Received: from localhost ([::1]:57663 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlaxb-0002aI-AJ for geb-bug-gnu-emacs@m.gmane.org; Sat, 26 Aug 2017 09:17:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42619) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlaxV-0002aC-Or for bug-gnu-emacs@gnu.org; Sat, 26 Aug 2017 09:17:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dlaxS-00054I-Jz for bug-gnu-emacs@gnu.org; Sat, 26 Aug 2017 09:17:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47472) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dlaxS-00054C-GX for bug-gnu-emacs@gnu.org; Sat, 26 Aug 2017 09:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dlaxS-000483-2Z for bug-gnu-emacs@gnu.org; Sat, 26 Aug 2017 09:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 26 Aug 2017 13:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28156 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 28156-submit@debbugs.gnu.org id=B28156.150375339715835 (code B ref 28156); Sat, 26 Aug 2017 13:17:02 +0000 Original-Received: (at 28156) by debbugs.gnu.org; 26 Aug 2017 13:16:37 +0000 Original-Received: from localhost ([127.0.0.1]:56153 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dlax2-00047L-UO for submit@debbugs.gnu.org; Sat, 26 Aug 2017 09:16:37 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:57550) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dlax0-000477-Ry for 28156@debbugs.gnu.org; Sat, 26 Aug 2017 09:16:35 -0400 Original-Received: from detlef.gmx.de ([79.140.112.117]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MLvLE-1dtHWW1yc0-007ovx; Sat, 26 Aug 2017 15:16:16 +0200 In-Reply-To: <87h8wvlssi.fsf@detlef> (Michael Albinus's message of "Fri, 25 Aug 2017 14:45:49 +0200") X-Provags-ID: V03:K0:/dTiqHa4O7J/vYZmkv+X/EFENtElGG/x27npdy/mR91x1Ez1c2Z fJZMbai8ZTzdzXDIxeNoRdIz/m+ICIqQua5URXpWvqLDY+vQnwJzQkwQu5wD5Ml7iRsRmLf rMIvCo2c7Zz4lRRGaK5Va3w9aZT8PLEyo8SFURibLD4aumRPRG1Lm9bBz4ndUOISdTV25fE Dk5Z5lmz2CY/N6FjUdgZA== X-UI-Out-Filterresults: notjunk:1;V01:K0:EdDVcomW9mM=:bQV1Z6pbC6sZHpeLa7qDyK FaVqj5MwxbS4FnYJ+dTQthA/0b4zpZ9WS/+Wq+yzVTmY1f8ZsnPai06fze94Wn/SI9eMIsmJS 3BwqC3iYo7w5X0veWkPKutzt+s6rG1n2qoOUX2dZ7y3eZ+CUU3lPOrDobTTNhGUHkZMbio823 tfNvj8IL4pR7kMpLpiv3v/lZf+lcKAiWEbLdNv0+MWvbCt8ql4U8nZ2epjfJmgRrFKTBtuoqq /xetY5L9M1GDKHyWa/kQhyUnQ62L03E/dbLmSS0FFZI0vwF5P5qhCtxGLecShJQs2dV2L4nzL aq2NNNVyd+maKSTGTgTCkvNZjsj6zrmqjlLi4EZsG0D2gAv+8oTfnNuQjaPOu0gVpKQXyMc74 /qA44E9albCrYxMH22VgkHWKTCuCf/9vvUsEmpRkqAEIqnN7yA7kZqoMesQ2naR/FrT0qpyHB 9KxC7ywYDyLp3R1ooF+6Ca1WwwAuNvX2EFtlA7Qebg0PjJhgVDua3wrOlZ/b73L1fHIwMPKU1 09vL4xTf9kZVgxwf6DNh5KEaBef4GvNkzG2w6vsLnH22dBx1gz3ovI4JSYkAdRAiR9L5f8rK8 42F7/s7HSCIXIvHD8U5ujZj2kV5oTmVmnXJHn/+9SAu+HrpqiLYOgkg2zHsthosDKxEwHr85H +cvMemQjHiRlvb2tsqZ5gnGZYOLMM1t2KD+MPNOH7twqiL761ezyiC6Og8UrIfdyw3YlqHbGg xZiq+9gS62tmctgpTMpRzZYCKtiGdlDm64kKFkw5uXM826kLgMFngc9H5U0eZQZwfO/xFqyk X-BeenThere: debbugs-submit@debbugs.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:136228 Archived-At: Michael Albinus writes: Hi Paul, >> That's fine if LINKNAME is also remote, since symlinks act >> locally. That is, if TARGET and LINKNAME are both remote to the same >> filesystem, Tramp can continue to munge TARGET so that it works on >> that filesystem. However, Tramp should not be in the business of >> specifying symlink behavior for local symbolic links. It should let >> the OS do that. If LINKNAME is local, TARGET should just act as itself >> without Tramp getting in the way. > > Tramp checks already in this case, that LINKNAME and TARGET belong to > the same remote filesystem. I just need to add the case, that TARGET is > used literally otherwise. I've commited a patch to the repo which does it for Tramp. Well, there are still some minor oddities when testing with the smb method, will fix this the next days. >> diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el >> index 55f4b52..99a21f3 100644 >> --- a/test/lisp/net/tramp-tests.el >> +++ b/test/lisp/net/tramp-tests.el > > You don't need to do this, I'll care for Tramp. Likely, I will add > further tests here. Done also. Best regards, Michael.