Fix password prompt in Tramp (do not merge)

* lisp/net/tramp.el (tramp-password-prompt-regexp):
Allow alternative trailing colons.  (Bug#61168)
This commit is contained in:
Michael Albinus 2023-01-30 11:43:04 +01:00
parent 8360e12f0e
commit 99e40959f4

View file

@ -643,7 +643,7 @@ This regexp must match both `tramp-initial-end-of-output' and
(tramp-compat-rx (tramp-compat-rx
bol (* nonl) bol (* nonl)
(group (regexp (regexp-opt password-word-equivalents))) (group (regexp (regexp-opt password-word-equivalents)))
(* nonl) ":" (? "\^@") (* blank)) (* nonl) (any "::៖") (? "\^@") (* blank))
"Regexp matching password-like prompts. "Regexp matching password-like prompts.
The regexp should match at end of buffer. The regexp should match at end of buffer.
@ -653,7 +653,7 @@ usually more convenient to add new passphrases to that variable
instead of altering this variable. instead of altering this variable.
The `sudo' program appears to insert a `^@' character into the prompt." The `sudo' program appears to insert a `^@' character into the prompt."
:version "24.4" :version "29.1"
:type 'regexp) :type 'regexp)
(defcustom tramp-wrong-passwd-regexp (defcustom tramp-wrong-passwd-regexp