summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2013-01-17 21:12:08 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2013-01-17 21:12:08 -0800
commit6772211202c57f0dc96e5725f882a2fa4ee98d2d (patch)
tree7e2ca991fa357834552b26980ca392d6f982559e /lisp/emacs-lisp
parent0eb8768885fab926acfae16d2fae8d39a72d8f35 (diff)
downloademacs-6772211202c57f0dc96e5725f882a2fa4ee98d2d.tar.gz
emacs-6772211202c57f0dc96e5725f882a2fa4ee98d2d.tar.bz2
emacs-6772211202c57f0dc96e5725f882a2fa4ee98d2d.zip
Close a race when statting and reading files.
* fileio.c (Finsert_file_contents): Use open+fstat, not stat+open. This avoids a race if the file is renamed between stat and open. This race is not the problem originally noted in Bug#13149; see <http://bugs.gnu.org/13149#73> and later messages in the thread.
Diffstat (limited to 'lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions