Match OpenBSD doas password prompt in comint
* lisp/comint.el (comint-password-prompt-regexp): match OpenBSD doas password prompt. OpenBSD 5.8 replaced sudo with doas in the base install. * test/lisp/comint-tests.el (comint-testsuite-password-strings): test that the doas password prompt is matched (bug#43846). Copyright-paperwork-exempt: yes
This commit is contained in:
parent
e45b0c5d94
commit
c69c17d573
2 changed files with 3 additions and 1 deletions
|
@ -362,6 +362,7 @@ This variable is buffer-local."
|
|||
;; Some implementations of passwd use "Password (again)" as the 2nd prompt.
|
||||
;; Something called "perforce" uses "Enter password:".
|
||||
;; OpenVPN prints a prompt like: "Enter Auth Password:".
|
||||
;; OpenBSD doas prints "doas (user@host) password:".
|
||||
;; See ert test `comint-test-password-regexp'.
|
||||
(defcustom comint-password-prompt-regexp
|
||||
(concat
|
||||
|
@ -370,7 +371,7 @@ This variable is buffer-local."
|
|||
'("Enter" "enter" "Enter same" "enter same" "Enter the" "enter the"
|
||||
"Enter Auth" "enter auth" "Old" "old" "New" "new" "'s" "login"
|
||||
"Kerberos" "CVS" "UNIX" " SMB" "LDAP" "PEM" "SUDO"
|
||||
"[sudo]" "Repeat" "Bad" "Retype")
|
||||
"[sudo]" "doas" "Repeat" "Bad" "Retype")
|
||||
t)
|
||||
;; Allow for user name to precede password equivalent (Bug#31075).
|
||||
" +.*\\)"
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
"Passphrase for key root@GNU.ORG: " ; plink
|
||||
"[sudo] password for user:" ; Ubuntu sudo
|
||||
"[sudo] user 的密码:" ; localized
|
||||
"doas (user@host) password:" ; OpenBSD doas
|
||||
"PIN for user:" ; Bug#35523
|
||||
"Password (again):"
|
||||
"Enter password:"
|
||||
|
|
Loading…
Add table
Reference in a new issue