unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#29663: 26.0.90; autho-source-pass-entries hardcodes .password-store directory
@ 2017-12-11 20:09 John Wiegley
       [not found] ` <handler.29663.B.151302297517890.ack@debbugs.gnu.org>
  2019-10-06  2:07 ` bug#29663: 26.0.90; autho-source-pass-entries hardcodes .password-store directory Stefan Kangas
  0 siblings, 2 replies; 5+ messages in thread
From: John Wiegley @ 2017-12-11 20:09 UTC (permalink / raw)
  To: 29663

`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.

-- 
John Wiegley                  GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com                          60E1 46C4 BD1A 7AC1 4BA2





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-11-02  0:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-11 20:09 bug#29663: 26.0.90; autho-source-pass-entries hardcodes .password-store directory John Wiegley
     [not found] ` <handler.29663.B.151302297517890.ack@debbugs.gnu.org>
2017-12-11 20:21   ` bug#29663: Acknowledgement (26.0.90; autho-source-pass-entries hardcodes .password-store directory) John Wiegley
2019-10-06  2:07 ` bug#29663: 26.0.90; autho-source-pass-entries hardcodes .password-store directory Stefan Kangas
2019-10-07  2:44   ` Basil L. Contovounesios
2019-11-02  0:34     ` Stefan Kangas

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).