diff options
| author | Paul Eggert | 2013-01-17 21:12:08 -0800 |
|---|---|---|
| committer | Paul Eggert | 2013-01-17 21:12:08 -0800 |
| commit | 6772211202c57f0dc96e5725f882a2fa4ee98d2d (patch) | |
| tree | 7e2ca991fa357834552b26980ca392d6f982559e /src/buffer.c | |
| parent | 0eb8768885fab926acfae16d2fae8d39a72d8f35 (diff) | |
| download | emacs-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/buffer.c')
0 files changed, 0 insertions, 0 deletions