Commit c8ea4b9f authored by Glenn Morris's avatar Glenn Morris
Browse files

* package.el (package-import-keyring): Create gnupg directory private.

See bug#17625#155.
parent 2ff7916a
2014-10-01 Glenn Morris <>
* emacs-lisp/package.el (package-import-keyring):
Create gnupg directory private. (Bug#17625#155)
2014-10-01 Stefan Monnier <>
* progmodes/python.el (python-shell-completion-get-completions):
......@@ -1298,7 +1298,13 @@ similar to an entry in `package-alist'. Save the cached copy to
(setq file (expand-file-name file))
(let ((context (epg-make-context 'OpenPGP))
(homedir (expand-file-name "gnupg" package-user-dir)))
(make-directory homedir t)
;; FIXME Use `with-file-modes' when merged to trunk.
(let ((umask (default-file-modes)))
(set-default-file-modes 448)
(make-directory homedir t))
(set-default-file-modes umask)))
(epg-context-set-home-directory context homedir)
(message "Importing %s..." (file-name-nondirectory file))
(epg-import-keys-from-file context file)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment