diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2023-02-13 12:32:11 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2023-02-13 12:32:59 -0800 |
commit | b950b46f514989442fdd9937a0e96d53a3affa88 (patch) | |
tree | cf02f481ec03906bdc17caa5baea265eeee28280 /lisp/emacs-lisp/comp-cstr.el | |
parent | bae5fa5d9a8ef8c41fbb3408eea441a2ee14d1db (diff) | |
download | emacs-b950b46f514989442fdd9937a0e96d53a3affa88.tar.gz emacs-b950b46f514989442fdd9937a0e96d53a3affa88.tar.bz2 emacs-b950b46f514989442fdd9937a0e96d53a3affa88.zip |
Fix insert-file-contents on /proc files
This should fix Bug#9800 (2011-10-19).
* src/fileio.c (Finsert_file_contents):
Do not trust st_size even on regular files, as the file might
be a Linux /proc file, or it might be growing.
Instead, always read to EOF when END is nil.
Diffstat (limited to 'lisp/emacs-lisp/comp-cstr.el')
0 files changed, 0 insertions, 0 deletions