From: Manuel Giraud Date: Sun, 20 Mar 2022 10:08:31 +0000 (+0100) Subject: Fix wrong password stored in Tramp X-Git-Tag: emacs-29.0.90~1931^2~1030 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=978681e78295d1f3457afb944d7ad4049039397f;p=emacs.git Fix wrong password stored in Tramp * lisp/net/tramp.el (tramp-process-actions): Unset `tramp-password-save-function'. --- diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 38bdfab1929..0192a63a104 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -5008,8 +5008,9 @@ performed successfully. Any other value means an error." (tramp-message vec 6 "\n%s" (buffer-string))) (if (eq exit 'ok) (ignore-errors - (and (functionp tramp-password-save-function) - (funcall tramp-password-save-function))) + (when (functionp tramp-password-save-function) + (funcall tramp-password-save-function) + (setq tramp-password-save-function nil))) ;; Not successful. (tramp-clear-passwd vec) (delete-process proc)