mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 18:40:39 -08:00
; tramp-auto-save-directory: set mode atomically when creating
* lisp/net/tramp.el (tramp-handle-make-auto-save-file-name): Use with-file-modes around make-directory. We can do this because Tramp now honors default file modes in make-directory.
This commit is contained in:
parent
9bc2ac4a95
commit
00556cf805
1 changed files with 2 additions and 2 deletions
|
|
@ -5429,8 +5429,8 @@ this file, if that variable is non-nil."
|
|||
;; Create directory.
|
||||
(unless (or (null tramp-auto-save-directory)
|
||||
(file-exists-p tramp-auto-save-directory))
|
||||
(make-directory tramp-auto-save-directory t)
|
||||
(set-file-modes tramp-auto-save-directory #o0700))
|
||||
(with-file-modes #o0700
|
||||
(make-directory tramp-auto-save-directory t)))
|
||||
|
||||
(let ((system-type
|
||||
(if (and (stringp tramp-auto-save-directory)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue