* lisp/net/tramp.el (tramp-handle-make-auto-save-file-name):
chmod 0700 tramp-auto-save-directory when creating
Thanks to Michael Albinus for reviewing this patch.
;; Create directory.
(unless (or (null tramp-auto-save-directory)
(file-exists-p tramp-auto-save-directory))
- (make-directory tramp-auto-save-directory t))
+ (make-directory tramp-auto-save-directory t)
+ (set-file-modes tramp-auto-save-directory #o0700))
(let ((system-type
(if (and (stringp tramp-auto-save-directory)