Subject: bug#65321: 30.0.50; Tramp sudo fails since commit 5c101b1adac

From: Michael Albinus <[email-masked]>
Date: Wed, 16 Aug 2023 15:24:56 +0200

Filipp Gunbin <[email-masked]> writes:

> Hi Michael,

Hi Filipp,

> Noted.
>
>>> - emacs -Q
>>> - M-x load-library tramp RET
>>> - M-x set-variable tramp-verbose RET 10 RET
>>> - C-x C-f /sudo::/tmp RET
>>> - <enter password at the prompt>
>>> - Observe hang with message like "Tramp: Opening connection nil for [email-masked] using sudo...failed"
>>> - C-g
>>>
>>> *debug tramp* buffer contents attached.
>>
>> Thanks for the report. You are hit by an infloop, due to some code
>> reorganization in Tramp. Fixed in master.
>
> Thanks, but now another error, debug output attached.

Hmm. According to the backtrace, Tramp has sent "/usr/bin/test -e / 2>/dev/null"
to the sudo process. It didn't return; you seem to have interrupted this
(it signals `quit').

What happens if you apply "/usr/bin/test -e /" in a sudo shell? And
could you, pls, send next time the debug buffer
*debug tramp/sudo [email-masked]* instead just the backtrace?

> Filipp

Best regards, Michael.