]> git.eshelyaron.com Git - emacs.git/commit
Fix some file-modes races
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 19 Feb 2020 21:47:57 +0000 (13:47 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 19 Feb 2020 21:48:27 +0000 (13:48 -0800)
commit734eb7e457da8a9b2c91798d591c03285c6967ce
treec8d8dc92d4af164c895d73de29e3d548385cff3c
parent4b118bdca1d8aa130fb67eadb16e08e87e698aa4
Fix some file-modes races

* lisp/gnus/gnus-start.el (gnus-save-newsrc-file)
(gnus-slave-save-newsrc):
* lisp/gnus/gnus-uu.el (gnus-uu-initialize):
* lisp/gnus/mm-archive.el (mm-dissect-archive):
* lisp/gnus/mm-decode.el (mm-temp-files-delete)
(mm-display-external):
* lisp/image-dired.el (image-dired-create-thumb-1):
Use with-file-modes rather than setting the file modes later.
This fixes some race conditions where the file temporarily
has the wrong permissions.
lisp/gnus/gnus-start.el
lisp/gnus/gnus-uu.el
lisp/gnus/mm-archive.el
lisp/gnus/mm-decode.el
lisp/image-dired.el