diff options
| author | Stefan Kangas | 2019-10-06 04:02:27 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2019-11-02 01:33:40 +0100 |
| commit | 6b2745fe2ecc5190e90f398022710256beb5c4e1 (patch) | |
| tree | 81b5ece89a9c5f952ca2c19108254682b3144a7e | |
| parent | 6297eb0fca9967649bcde6fd160bb6b5d3ce6878 (diff) | |
| download | emacs-6b2745fe2ecc5190e90f398022710256beb5c4e1.tar.gz emacs-6b2745fe2ecc5190e90f398022710256beb5c4e1.zip | |
Use PASSWORD_STORE_DIR in auth-source-pass when set
* lisp/auth-source-pass.el (auth-source-pass-filename): Initialize to
PASSWORD_STORE_DIR environment variable when set. (Bug#29663)
| -rw-r--r-- | lisp/auth-source-pass.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/auth-source-pass.el b/lisp/auth-source-pass.el index c45c782c27c..524a72792cf 100644 --- a/lisp/auth-source-pass.el +++ b/lisp/auth-source-pass.el | |||
| @@ -45,7 +45,8 @@ | |||
| 45 | :group 'auth-source | 45 | :group 'auth-source |
| 46 | :version "27.1") | 46 | :version "27.1") |
| 47 | 47 | ||
| 48 | (defcustom auth-source-pass-filename "~/.password-store" | 48 | (defcustom auth-source-pass-filename |
| 49 | (or (getenv "PASSWORD_STORE_DIR") "~/.password-store") | ||
| 49 | "Filename of the password-store folder." | 50 | "Filename of the password-store folder." |
| 50 | :type 'directory | 51 | :type 'directory |
| 51 | :version "27.1") | 52 | :version "27.1") |