[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#29663: 26.0.90; autho-source-pass-entries hardcodes .password-store
From: |
Stefan Kangas |
Subject: |
bug#29663: 26.0.90; autho-source-pass-entries hardcodes .password-store directory |
Date: |
Sun, 6 Oct 2019 04:07:46 +0200 |
"John Wiegley" <johnw@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
Description: Text Data
- bug#29663: 26.0.90; autho-source-pass-entries hardcodes .password-store directory,
Stefan Kangas <=