aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorMichael Albinus2015-09-01 16:31:06 +0200
committerMichael Albinus2015-09-01 16:31:06 +0200
commitda88ad6cb1e98ef9f28462648ab53d81d22dd189 (patch)
tree564f61248b7ce9a7eb29e8b0f18bdb9696d71874 /lisp
parenta3c31adea4970b8a7fc7f495e6a6a6d4a93e69ce (diff)
downloademacs-da88ad6cb1e98ef9f28462648ab53d81d22dd189.tar.gz
emacs-da88ad6cb1e98ef9f28462648ab53d81d22dd189.zip
* lisp/net/tramp-sh.el (tramp-methods) <sudo>: Mask "Password:".
Diffstat (limited to 'lisp')
-rw-r--r--lisp/net/tramp-sh.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 5f96b92f17f..79b024e8310 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -288,10 +288,10 @@ The string is used in `tramp-methods'.")
288(add-to-list 'tramp-methods 288(add-to-list 'tramp-methods
289 '("sudo" 289 '("sudo"
290 (tramp-login-program "sudo") 290 (tramp-login-program "sudo")
291 ;; The password template must not be the last argument. 291 ;; The password template must be masked. Otherwise, it could be
292 ;; Otherwise, it could be interpreted as password prompt if the 292 ;; interpreted as password prompt if the remote host echoes the command.
293 ;; remote host echoes the command. 293 (tramp-login-args (("-u" "%u") ("-s") ("-H")
294 (tramp-login-args (("-p" "Password:") ("-u" "%u") ("-s") ("-H"))) 294 ("-p" "P\"\"a\"\"s\"\"s\"\"w\"\"o\"\"r\"\"d\"\":")))
295 ;; Local $SHELL could be a nasty one, like zsh or fish. Let's override it. 295 ;; Local $SHELL could be a nasty one, like zsh or fish. Let's override it.
296 (tramp-login-env (("SHELL") ("/bin/sh"))) 296 (tramp-login-env (("SHELL") ("/bin/sh")))
297 (tramp-remote-shell "/bin/sh") 297 (tramp-remote-shell "/bin/sh")