GNU bug report logs - #53783
29.0.50; eshell/sudo and eshell/su always use localhost as host

Previous Next

Package: emacs;

Reported by: Russell Sim <russell.sim <at> gmail.com>

Date: Fri, 4 Feb 2022 19:35:01 UTC

Severity: normal

Found in version 29.0.50

Fixed in version 29.1

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

Bug is archived. No further changes may be made.

Full log


Message #10 received at 53783-done <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Russell Sim <russell.sim <at> gmail.com>
Cc: 53783-done <at> debbugs.gnu.org
Subject: Re: bug#53783: 29.0.50; eshell/sudo and eshell/su always use
 localhost as host
Date: Sun, 06 Feb 2022 09:47:01 +0100
Version: 29.1

Russell Sim <russell.sim <at> gmail.com> writes:

> Hey,

Hi Russell,

> When using eshell if I call `sudo pwd` it will open a different host to if i
> call `cd /sudo::/ && pwd` in the first case it will visit "/sudo:root <at> localhost:" and in the
> other case it will visit my system "/sudo:root <at> mowgli:"
>
> I would like to have them both visit the host's actual name "mowgli" so
> that i can reduce the number of open sessions and also take advantage of
> being able to store sudo passwords.
>
> Would it be reasonable for eshell/sudo and eshell/su to instead either
> use tramp-default-host or tramp-system-name which ever is more
> appropriate?

I've fixed it this way, using tramp-default-host. Pushed to master.

> Many thanks,
> Russell

Best regards, Michael.




This bug report was last modified 3 years and 100 days ago.

Previous Next


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