From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#54130: 29.0.50; TRAMP SSHFS can't visit remote files using absolute symlinks Date: Thu, 24 Feb 2022 16:19:15 +0100 Message-ID: <87k0dkmgwc.fsf@gmx.de> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40274"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 54130-done@debbugs.gnu.org To: Philipp Stephani Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 24 16:20:23 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nNFum-000AD0-Vm for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 24 Feb 2022 16:20:20 +0100 Original-Received: from localhost ([::1]:41660 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nNFul-0006nF-Lr for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 24 Feb 2022 10:20:19 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35728) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNFuV-0006mm-7I for bug-gnu-emacs@gnu.org; Thu, 24 Feb 2022 10:20:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56267) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nNFuU-0004Oz-TI for bug-gnu-emacs@gnu.org; Thu, 24 Feb 2022 10:20:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nNFuU-0000jF-Nx for bug-gnu-emacs@gnu.org; Thu, 24 Feb 2022 10:20:02 -0500 Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Feb 2022 15:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 54130 X-GNU-PR-Package: emacs Mail-Followup-To: 54130@debbugs.gnu.org, michael.albinus@gmx.de, p.stephani2@gmail.com Original-Received: via spool by 54130-done@debbugs.gnu.org id=D54130.16457159652742 (code D ref 54130); Thu, 24 Feb 2022 15:20:02 +0000 Original-Received: (at 54130-done) by debbugs.gnu.org; 24 Feb 2022 15:19:25 +0000 Original-Received: from localhost ([127.0.0.1]:50162 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNFtt-0000i9-Ha for submit@debbugs.gnu.org; Thu, 24 Feb 2022 10:19:25 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:38337) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNFtr-0000hv-BZ for 54130-done@debbugs.gnu.org; Thu, 24 Feb 2022 10:19:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1645715956; bh=huv1LTXht+GkvrjXH6/WdVAh/P8R13Px/5tDVV/FvOA=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=G4omTaOCAUlUzQvPQb9KuYeYpn6bQVYo3gSU9r/EcrC4eLUjtmBoYm6nqpKT9i8T8 PnoBxwi46Ne+G+IVd4QpBmkLwReVXybjovvJvcDpTQIYzwx64rRyLmOCT5TkOrohTz ydP909dTIMNHd0zzzsztjIQnHZjVIFtnzVtj9yAU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([213.220.157.175]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MeU4s-1nvDfc2L12-00aSbg; Thu, 24 Feb 2022 16:19:16 +0100 In-Reply-To: (Philipp Stephani's message of "Wed, 23 Feb 2022 18:41:58 +0100") X-Provags-ID: V03:K1:u+gFk2k/vdAGi4Q6OFmKEdaF4j5K3cEcOXw9f0m+XBWCk9i0Mw+ pBFnFtF0Q4Tl87qKqRA32EZrqDIi0GBp4e51t7HVvUd90SCC1FX1diipyjUeBed/ZS/Yi49 ejOSeJFPZU+HgHIkfJKZmKjNlrsTlxiSIgzk7gDNjzsIfVVRgUoRToMXiWnk5hMSFJpnEXU f9fZ4fFzlcA7x3iCgUmOA== X-UI-Out-Filterresults: notjunk:1;V03:K0:uoIC0P8jaYE=:acwj/34oGdyT5+gO5et104 5Ajqt2krL0wxavADhJH4hiQKQ+Ddvytct7kP6iSdyMDcfzkdifRpvuvttLmZBiZqL4iYZ10Nj qt+sc7y7oSwNXe/9cNzglx0fzly4zT1+PKZWeue8YuWFU4OmbeRtIhwGNzTv76mkGI55vZ0A8 bbP/56hPtoPGYOqIoz2TLyGF+VFqNngNvkRIjOQCnO2WAqZAxC5d+2YXJltL8nM7ijjLGY++X kerk1g/NWsf5mW9L4dH1hIVN7rov2/P1E0j9rG7zHFF5yXLVc9ztzbTGjKZjstJRNIMJrH3Ft wkdzWyersAMQjTIk80vmDQPq70fVh4RC40X18lhN1BbFRsQYufKta+He4qweOP1PadwrWSFIA 8RWckZP/aE1QyBjk+qkqpOzltZqyCcWb/NVjq3GR0CzdTiwq+eBqZSz8r0eY9qJjTcWZPh591 ivTytN4HkKrlO0enwiEsppUrdFlEiHn8CgWtS68ksID5SY0afom1xFUjtHrDtPy766Ak3fPft 9iyNGaGP7o/5b8FN2TjhHja5s8sgI6Ck7nK3uyjdN8rfhr8vKhY9+KvO/xzXaSPOLiqWtlcdu Nb0Qs7eA+yiAU8upvzwmrE+Qb2TlOvelHb03WoJmiS4eN1y6f5HzJdk0rQlQBhullC/KiZdlz 07Ksz51aZatt8rUzuaJpLmm597I8JbTj00eorPY+aqiDu9+WXpXbJjHi8Wq2g2UNOYnew9hoL xdNfdusNAe4PdxV9ipzT8ouu4wpVldk3j0pvoc/sQ7qQwYI8vvuYMhqT2kTx5d5KmUtlQ2tE X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:227587 Archived-At: Version: 28.2 Philipp Stephani writes: Hi Philipp, > On a remote host REMOTE, create an arbitrary file and an absolute > symlink to it: > > REMOTE$ echo hi > /tmp/a.txt > REMOTE$ ln -svi /tmp/{a,b}.txt > > Visiting the symlink from another host using SSH works as expected: > > emacs -Q /ssh:REMOTE:/tmp/b.txt > > But the same fails with SSHFS: > > emacs -Q /sshfs:REMOTE:/tmp/b.txt > > TRAMP prints a message "File exists, but cannot be read", and the buffer > stays empty. SSHFS interprets symbolic links on the local host. An absolute file name cannot work, therefore. I've added ("-o" "transform_symlinks") to the tramp-mount-args of the sshfs Tramp method. This shall fix it. Pls unmount any sshfs mounts prior testing, otherwise it wouldn't work. An alternative would be to use ("-o" "follow_symlinks"). But this has the disadvantage that symbolic links look like regular files then, so I haven't used it. Pushed to the repositories. You'll find it on the master branch, and in the upcoming GNU ELPA Tramp 2.5.2.2. Closing the bug. Best regards, Michael.