GNU bug report logs - #78791
30.1; Tramp reopening file with sudo after disconnect error message

Previous Next

Package: emacs;

Reported by: Alexis Bakatine <abakatine <at> proton.me>

Date: Sat, 14 Jun 2025 19:24:03 UTC

Severity: normal

Tags: notabug

Found in version 30.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Alexis Bakatine <abakatine <at> proton.me>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: 30.1; Tramp reopening file with sudo after disconnect error message
Date: Sat, 14 Jun 2025 19:23:17 +0000
Hello, when I'm trying to open a file from a Dired buffer with sudo after a
disconnect with Tramp, it results in an error message.

How to reproduce:

1. emacs -Q '/ssh:foo <at> bar|sudo::'
2. M-x tramp-cleanup-all-connections
3. 'o' or <RET> to open a file

result in *Messages*:
Host name 'bar' does not match ‘\`\(?:t480s\|\(?:127\.0\.0\.1\|::1\|ip\(?:6-lo\(?:calhost\|opback\)\|v6-lo\(?:calhost\|opback\)\)\|localhost[46]?\)\)\'’

Note that when NOT using sudo as with /ssh:foo <at> bar:, I can run M-x
tramp-cleanup-all-connections and open a file without problem,
Tramp reconnects automatically.

Tested on Emacs 30.1 and 31.0.50 on Linux.

Best regards,

Alexis




This bug report was last modified 2 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.