[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 372d0e0cc1: Make usage of su and sudo consistent in eshell (bug#5
From: |
Michael Albinus |
Subject: |
master 372d0e0cc1: Make usage of su and sudo consistent in eshell (bug#53783) |
Date: |
Sun, 6 Feb 2022 03:43:23 -0500 (EST) |
branch: master
commit 372d0e0cc1fccddea94b6eebfb59967221a70778
Author: Michael Albinus <michael.albinus@gmx.de>
Commit: Michael Albinus <michael.albinus@gmx.de>
Make usage of su and sudo consistent in eshell (bug#53783)
* lisp/eshell/em-tramp.el (eshell/su, eshell/sudo):
Use `tramp-default-host' instead of "localhost".
---
lisp/eshell/em-tramp.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/eshell/em-tramp.el b/lisp/eshell/em-tramp.el
index 2afd4fe066..aebbc36e71 100644
--- a/lisp/eshell/em-tramp.el
+++ b/lisp/eshell/em-tramp.el
@@ -71,7 +71,7 @@ Become another USER during a login session.")
(throw 'eshell-replace-command
(let ((user "root")
(host (or (file-remote-p default-directory 'host)
- "localhost"))
+ tramp-default-host))
(dir (file-local-name (expand-file-name default-directory)))
(prefix (file-remote-p default-directory)))
(dolist (arg args)
@@ -106,7 +106,7 @@ Execute a COMMAND as the superuser or another USER.")
(throw 'eshell-external
(let* ((user (or user "root"))
(host (or (file-remote-p default-directory 'host)
- "localhost"))
+ tramp-default-host))
(dir (file-local-name (expand-file-name default-directory)))
(prefix (file-remote-p default-directory))
(default-directory
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 372d0e0cc1: Make usage of su and sudo consistent in eshell (bug#53783),
Michael Albinus <=