Commit bd3625c4 authored by Michael Albinus's avatar Michael Albinus
Browse files

Fixes: debbugs:19047

* net/tramp.el (tramp-action-password): Clean password on subsequent
attempts even if there was no wrong password indication.
parent 176f2077
2014-11-22 Michael Albinus <michael.albinus@gmx.de>
* net/tramp.el (tramp-action-password): Clean password on subsequent
attempts even if there was no wrong password indication. (Bug#19047)
* net/tramp-sh.el (tramp-get-remote-locale): Return "LC_ALL=C" as
fallback.
(tramp-open-connection-setup-interactive-shell): No need to check
......
......@@ -3445,9 +3445,9 @@ of."
;; Let's check whether a wrong password has been sent already.
;; Sometimes, the process returns a new password request
;; immediately after rejecting the previous (wrong) one.
(goto-char (point-min))
(when (search-forward-regexp tramp-wrong-passwd-regexp nil t)
(unless (tramp-get-connection-property vec "first-password-request" nil)
(tramp-clear-passwd vec))
(goto-char (point-min))
(tramp-check-for-regexp proc tramp-password-prompt-regexp)
(tramp-message vec 3 "Sending %s" (match-string 1))
;; We don't call `tramp-send-string' in order to hide the
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment