aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorPaul Eggert2013-01-17 21:12:08 -0800
committerPaul Eggert2013-01-17 21:12:08 -0800
commit6772211202c57f0dc96e5725f882a2fa4ee98d2d (patch)
tree7e2ca991fa357834552b26980ca392d6f982559e /src/ChangeLog
parent0eb8768885fab926acfae16d2fae8d39a72d8f35 (diff)
downloademacs-6772211202c57f0dc96e5725f882a2fa4ee98d2d.tar.gz
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 'src/ChangeLog')
-rw-r--r--src/ChangeLog8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index c85e0a789ea..f53b9a70e97 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,11 @@
12013-01-17 Paul Eggert <eggert@cs.ucla.edu>
2
3 Close a race when statting and reading files (Bug#13149).
4 * fileio.c (Finsert_file_contents): Use open+fstat, not stat+open.
5 This avoids a race if the file is renamed between stat and open.
6 This race is not the problem originally noted in Bug#13149;
7 see <http://bugs.gnu.org/13149#73> and later messages in the thread.
8
12013-01-17 Dmitry Antipov <dmantipov@yandex.ru> 92013-01-17 Dmitry Antipov <dmantipov@yandex.ru>
2 10
3 * lisp.h (toplevel): Add comment about using Lisp_Save_Value 11 * lisp.h (toplevel): Add comment about using Lisp_Save_Value