Skip to content

Commit

Permalink
Make temporary files only readable by the owner.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alberto Luaces authored and tecosaur committed May 9, 2024
1 parent 8868b9e commit 0b731ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion emacs-everywhere.el
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,8 @@ Never paste content when ABORT is non-nil."
(let ((inhibit-message t)
(require-final-newline nil)
write-file-functions)
(write-file buffer-file-name)
(with-file-modes #o600
(write-file buffer-file-name))
(apply #'call-process (car emacs-everywhere-copy-command)
nil nil nil
(mapcar (lambda (arg)
Expand Down

0 comments on commit 0b731ca

Please sign in to comment.