[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master da88ad6: * lisp/net/tramp-sh.el (tramp-methods) <su
From: |
Michael Albinus |
Subject: |
[Emacs-diffs] master da88ad6: * lisp/net/tramp-sh.el (tramp-methods) <sudo>: Mask "Password:". |
Date: |
Tue, 01 Sep 2015 14:31:16 +0000 |
branch: master
commit da88ad6cb1e98ef9f28462648ab53d81d22dd189
Author: Michael Albinus <address@hidden>
Commit: Michael Albinus <address@hidden>
* lisp/net/tramp-sh.el (tramp-methods) <sudo>: Mask "Password:".
---
lisp/net/tramp-sh.el | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 5f96b92..79b024e 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -288,10 +288,10 @@ The string is used in `tramp-methods'.")
(add-to-list 'tramp-methods
'("sudo"
(tramp-login-program "sudo")
- ;; The password template must not be the last argument.
- ;; Otherwise, it could be interpreted as password prompt if the
- ;; remote host echoes the command.
- (tramp-login-args (("-p" "Password:") ("-u" "%u") ("-s") ("-H")))
+ ;; The password template must be masked. Otherwise, it could be
+ ;; interpreted as password prompt if the remote host echoes the command.
+ (tramp-login-args (("-u" "%u") ("-s") ("-H")
+ ("-p"
"P\"\"a\"\"s\"\"s\"\"w\"\"o\"\"r\"\"d\"\":")))
;; Local $SHELL could be a nasty one, like zsh or fish. Let's override it.
(tramp-login-env (("SHELL") ("/bin/sh")))
(tramp-remote-shell "/bin/sh")
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master da88ad6: * lisp/net/tramp-sh.el (tramp-methods) <sudo>: Mask "Password:".,
Michael Albinus <=