From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Aleksei Fedotov Newsgroups: gmane.emacs.bugs Subject: bug#53223: 27.2; multi-hop TRAMP with find-file-visit-truename t Date: Wed, 12 Jan 2022 22:23:41 +0100 Message-ID: <877db48x7m.fsf@hp.cfotr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25612"; mail-complaints-to="usenet@ciao.gmane.io" To: 53223@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 12 22:35:36 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 1n7lHM-0006Pw-5i for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Jan 2022 22:35:36 +0100 Original-Received: from localhost ([::1]:52774 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n7lHK-0007UA-ID for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Jan 2022 16:35:34 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55392) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7lGp-0007U1-1G for bug-gnu-emacs@gnu.org; Wed, 12 Jan 2022 16:35:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38193) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n7lGo-0004YI-NH for bug-gnu-emacs@gnu.org; Wed, 12 Jan 2022 16:35:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n7lGo-0001Bh-Iu for bug-gnu-emacs@gnu.org; Wed, 12 Jan 2022 16:35:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Aleksei Fedotov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Jan 2022 21:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53223 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16420232604500 (code B ref -1); Wed, 12 Jan 2022 21:35:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Jan 2022 21:34:20 +0000 Original-Received: from localhost ([127.0.0.1]:59329 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7lG7-0001AV-Ii for submit@debbugs.gnu.org; Wed, 12 Jan 2022 16:34:20 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:48876) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7l69-00074x-V6 for submit@debbugs.gnu.org; Wed, 12 Jan 2022 16:24:03 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53686) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7l69-0000yj-GO for bug-gnu-emacs@gnu.org; Wed, 12 Jan 2022 16:24:01 -0500 Original-Received: from mailtransmit05.runbox.com ([185.226.149.38]:39692) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7l66-0002w0-Ea for bug-gnu-emacs@gnu.org; Wed, 12 Jan 2022 16:24:01 -0500 Original-Received: from mailtransmit02.runbox ([10.9.9.162] helo=aibo.runbox.com) by mailtransmit05.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1n7l5s-00EN4J-6G for bug-gnu-emacs@gnu.org; Wed, 12 Jan 2022 22:23:44 +0100 Original-Received: from [10.9.9.72] (helo=submission01.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1n7l5r-0008FN-NF for bug-gnu-emacs@gnu.org; Wed, 12 Jan 2022 22:23:44 +0100 Original-Received: by submission01.runbox with esmtpsa [Authenticated ID (873625)] (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) id 1n7l5r-0004TA-89; Wed, 12 Jan 2022 22:23:43 +0100 Received-SPF: pass client-ip=185.226.149.38; envelope-from=aleksei@fedotov.email; helo=mailtransmit05.runbox.com X-Spam_score_int: 6 X-Spam_score: 0.6 X-Spam_bar: / X-Spam_report: (0.6 / 5.0 requ) BAYES_00=-1.9, HDRS_MISSP=2.497, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 12 Jan 2022 16:34:18 -0500 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:224047 Archived-At: Hi, I've spotted a problem with TRAMP when using multi-hop ssh with find-file-visit-truename set to t. Assuming that there is a remote machine XXX.YYY.com with SSH server. On loc= al machine I run emacs like that: > emacs -Q --eval '(progn \ > (require (quote tramp)) \ > (setq find-file-visit-truename t) \ > (with-current-buffer (find-file "/ssh:root@XXX.YYYY.com|ssh:localho= st:") \ > (tramp-cleanup-all-connections) \ > (revert-buffer)))' It successfully connects to the remote machine and opens dired buffer with = the correct content, but the filename name in the dired header is not '/ssh:XXX.YYYY.com|ssh:localhost:' as I might expect, but '/ssh:localhost:/root:'. After (revert-buffer) I get an error in *Messages*: > tramp-handle-access-file: Reading directory: No such file or directory /s= sh:localhost:/root/ The issue does not reproduce if find-file-visit-truename set to nil. It loo= ks like 'file-truename' doesn't work correctly with multi-hop tramp file na= mes. In GNU Emacs 27.2 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.24.30, = cairo version 1.17.4) of 2021-08-07 built on buildvm-x86-31.iad2.fedoraproject.org Windowing system distributor 'The X.Org Foundation', version 11.0.12101004 System Description: Fedora Linux 35 (Workstation Edition) Recent messages: Tramp: Found remote shell prompt on =E2=80=98XXX.YYY.com=E2=80=99 Tramp: Sending command =E2=80=98exec ssh -e none localhost=E2=80=99 Tramp: Waiting for prompts from remote shell...done Tramp: Found remote shell prompt on =E2=80=98localhost=E2=80=99 Tramp: Opening connection for localhost using ssh...done Tramp: Opening connection for localhost using ssh... Tramp: Sending command =E2=80=98exec ssh -e none localhost=E2=80=99 Tramp: Waiting for prompts from remote shell...done Tramp: Found remote shell prompt on =E2=80=98localhost=E2=80=99 Tramp: Opening connection for localhost using ssh...done tramp-handle-access-file: Reading directory: No such file or directory /ssh= :localhost:/root/ Configured using: 'configure --build=3Dx86_64-redhat-linux-gnu --host=3Dx86_64-redhat-linux-gnu --program-prefix=3D --disable-dependency-tracking --prefix=3D/usr --exec-prefix=3D/usr --bindir=3D/usr/bin --sbindir=3D/usr/sbin --sysconfdir=3D/etc --datadir=3D/usr/share --includedir=3D/usr/include --libdir=3D/usr/lib64 --libexecdir=3D/usr/libexec --localstatedir=3D/var --sharedstatedir=3D/var/lib --mandir=3D/usr/share/man --infodir=3D/usr/share/info --with-dbus --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=3Dgtk3 --with-gpm=3Dno --with-xwidgets --with-modules --with-harfbuzz --with-cairo --with-json build_alias=3Dx86_64-redhat-linux-gnu host_alias=3Dx86_64-redhat-linux-gnu CC=3Dgcc 'CFLAGS=3D-DMAIL_USE_LOCKF -= O2 -flto=3Dauto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=3Dformat-security -Wp,-D_FORTIFY_SOURCE=3D2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=3D/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=3D/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=3Dgeneric -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' LDFLAGS=3D-Wl,-z,relro PKG_CONFIG_PATH=3D:/usr/lib64/pkgconfig:/usr/share/pkgconfig' Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS LIBSYSTEMD JSON PDUMPER GMP Important settings: value of $LC_MONETARY: en_US.UTF-8 value of $LC_NUMERIC: en_US.UTF-8 value of $LC_TIME: en_US.UTF-8 value of $LANG: en_US.utf8 locale-coding-system: utf-8-unix Major mode: Dired by name Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny rfc822 mml easymenu mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils tramp-cmds dired dired-loaddefs tramp-sh tramp-cache tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell pcomplete comint ansi-color ring parse-time iso8601 time-date ls-lisp format-spec auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs cl-loaddefs cl-lib password-cache json subr-x map seq byte-opt gv bytecomp byte-compile cconv tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting xwidget-internal cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 67308 9233) (symbols 48 8131 1) (strings 32 24241 1892) (string-bytes 1 868840) (vectors 16 14042) (vector-slots 8 184813 11864) (floats 8 40 21) (intervals 56 271 0) (buffers 1000 13)) --=20 Aleksei