GNU bug report logs -
#29663
26.0.90; autho-source-pass-entries hardcodes .password-store directory
Previous Next
Reported by: "John Wiegley" <johnw <at> gnu.org>
Date: Mon, 11 Dec 2017 20:10:02 UTC
Severity: minor
Found in version 26.0.90
Fixed in version 27.1
Done: Stefan Kangas <stefan <at> marxist.se>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
"John Wiegley" <johnw <at> gnu.org> writes:
> `auth-source-pass-entries' is defined as follows:
>
> (defun auth-source-pass-entries ()
> "Return a list of all password store entries."
> (let ((store-dir (expand-file-name "~/.password-store/")))
> (mapcar
> (lambda (file) (file-name-sans-extension (file-relative-name file store-dir)))
> (directory-files-recursively store-dir "\.gpg$"))))
>
> However, the pass utility does not require that this be the directory where
> passwords are stored. This should be a customizable variable, initialized from
> the value of (getenv "PASSWORD_STORE_DIR") if set.
Hi John,
I see that an option was added recently which takes care of the first
part of your requesti:
a63cbb56df 2019-01-13 Add auth-source-pass-filename option
I've attached a patch which initializes auth-source-pass-filename to
(getenv "PASSWORD_STORE_DIR") when it's set. What do you think?
Best regards,
Stefan Kangas
[0001-Use-PASSWORD_STORE_DIR-in-auth-source-pass-when-set.patch (text/x-patch, attachment)]
This bug report was last modified 5 years and 266 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.