diff options
| author | Paul Eggert | 2025-01-22 11:06:06 -0800 |
|---|---|---|
| committer | Paul Eggert | 2025-07-13 21:09:38 -0700 |
| commit | 0a3c8a4df3f9e15737e4e5b4aecd2e63d2abbc4f (patch) | |
| tree | cec0652bfdb92bfd6f470753a83820cfd79a6a57 /src/doc.c | |
| parent | ffd65be2277b9a30e77a00ad69c9ba21459f72c5 (diff) | |
| download | emacs-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 'src/doc.c')
0 files changed, 0 insertions, 0 deletions