mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-09 12:57:25 -05:00
fix: permissions for local dirs
This prevents edge cases where these directories are created with permissions that prevent Emacs from writing to them. This can happy either due to an overly-restrictive default umask, `set-default-file-modes` call, or if `doom-profiles-save` is instructed to write a file whose parent doesn't exist yet. Fix: #8134
This commit is contained in:
@ -243,7 +243,7 @@ caches them in `doom--profiles'. If RELOAD? is non-nil, refresh the cache."
|
||||
;; `user-emacs-directory' requires that it end in a directory
|
||||
;; separator, but users may forget this in their profile configs.
|
||||
(setq user-emacs-directory (file-name-as-directory user-emacs-directory))))
|
||||
:mode #o600
|
||||
:mode (cons #o600 #o700)
|
||||
:printfn #'pp)
|
||||
(print-group!
|
||||
(or (let ((byte-compile-warnings (if init-file-debug byte-compile-warnings))
|
||||
|
Reference in New Issue
Block a user