From 984eacd0a888ac22119349420d09f58fd41aa33f Mon Sep 17 00:00:00 2001 From: Kenny Ballou Date: Wed, 11 Jan 2023 09:05:26 -0700 Subject: config: emacs: remove unencrypted files from auth-sources Do not allow usage of the unencrypted .authinfo or .netrc files. Signed-off-by: Kenny Ballou --- config/emacs/emacs.d/emacs.org | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config/emacs/emacs.d/emacs.org b/config/emacs/emacs.d/emacs.org index 30bdbf3d..96a62c94 100644 --- a/config/emacs/emacs.d/emacs.org +++ b/config/emacs/emacs.d/emacs.org @@ -4583,6 +4583,13 @@ Except where they probably shouldn't be added. (auth-source-pass-enable)) #+end_src +Remove unencrypted files from the list of [[help:auth-sources][auth-sources]]: + +#+begin_src elisp +(dolist (file '("~/.authinfo" "~/.netrc")) + (delete file auth-sources)) +#+end_src + **** Org-Contacts :PROPERTIES: :ID: 49e301c9-cdaa-4890-a3be-34b17d050b05 -- cgit v1.2.1