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


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Alexis Bakatine <abakatine <at> proton.me>
Subject: bug#78791: closed (Re: bug#78791: 30.1; Tramp reopening file with
 sudo after disconnect error message)
Date: Mon, 16 Jun 2025 08:17:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#78791: 30.1; Tramp reopening file with sudo after disconnect error message

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 78791 <at> debbugs.gnu.org.

-- 
78791: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=78791
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Michael Albinus <michael.albinus <at> gmx.de>
To: Alexis Bakatine <abakatine <at> proton.me>
Cc: "78791 <at> debbugs.gnu.org" <78791-done <at> debbugs.gnu.org>
Subject: Re: bug#78791: 30.1; Tramp reopening file with sudo after
 disconnect error message
Date: Mon, 16 Jun 2025 10:16:19 +0200
Alexis Bakatine <abakatine <at> proton.me> writes:

Hi Alexis,

> tramp-show-ad-hoc-proxies is working perfectly for what I described.
>
> Thank you a lot for the explanation and solution Michael.
> Feel free to close the non-bug and I wish you a great day.

Thanks for the feedback, I'm closing the bug.

> Best regards,
>
> Alexis

Best regards, Michael.

[Message part 3 (message/rfc822, inline)]
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.