aboutsummaryrefslogtreecommitdiffstats
path: root/lib/scratch_buffer.h
diff options
context:
space:
mode:
authorPaul Eggert2025-01-22 11:06:06 -0800
committerPaul Eggert2025-07-13 21:09:38 -0700
commit0a3c8a4df3f9e15737e4e5b4aecd2e63d2abbc4f (patch)
treecec0652bfdb92bfd6f470753a83820cfd79a6a57 /lib/scratch_buffer.h
parentffd65be2277b9a30e77a00ad69c9ba21459f72c5 (diff)
downloademacs-0a3c8a4df3f9e15737e4e5b4aecd2e63d2abbc4f.tar.gz
emacs-0a3c8a4df3f9e15737e4e5b4aecd2e63d2abbc4f.zip
Don’t trust st_size when scanning file head+tail
* src/fileio.c (Finsert_file_contents): Do not look at st_size when scanning the file’s head and tail for a coding system comment. Instead, just use read and SEEK_END and don’t worry if the latter fails. st_size and lseek might not work in a /proc file system.
Diffstat (limited to 'lib/scratch_buffer.h')
0 files changed, 0 insertions, 0 deletions