Skip to content

Commit a012953

Browse files
committed
Fix problem with auth-source.el in Tramp
* lisp/net/tramp.el (tramp-read-passwd): Use `tramp-compat-temporary-file-directory'. (Bug#39389, Bug#39489)
1 parent 2e2f539 commit a012953

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lisp/net/tramp.el

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4849,7 +4849,12 @@ verbosity of 6."
48494849
"Read a password from user (compat function).
48504850
Consults the auth-source package.
48514851
Invokes `password-read' if available, `read-passwd' else."
4852-
(let* ((case-fold-search t)
4852+
(let* (;; If `auth-sources' contains "~/.authinfo.gpg", and
4853+
;; `exec-path' contains a relative file name like ".", it
4854+
;; could happen that the "gpg" command is not found. So we
4855+
;; adapt `default-directory'. (Bug#39389, Bug#39489)
4856+
(default-directory (tramp-compat-temporary-file-directory))
4857+
(case-fold-search t)
48534858
(key (tramp-make-tramp-file-name
48544859
;; In tramp-sh.el, we must use "password-vector" due to
48554860
;; multi-hop.

0 commit comments

Comments
 (0)