diff options
| author | Paul Eggert | 2025-07-12 14:31:18 -0700 |
|---|---|---|
| committer | Paul Eggert | 2025-07-13 21:09:39 -0700 |
| commit | aee9b598312e282700c4eedf02b174b908479ce7 (patch) | |
| tree | 87c8cd0c1d8c34944f17624007856b4d82251c28 /java/res/values | |
| parent | 56091b6d5cccecf320796bd62e36adc64f45b614 (diff) | |
| download | emacs-aee9b598312e282700c4eedf02b174b908479ce7.tar.gz emacs-aee9b598312e282700c4eedf02b174b908479ce7.zip | |
insert-file-contents file end EOF fixes
* src/fileio.c (Finsert_file_contents):
When counting bytes at file end, don’t trust lseek to seek
to the end of the file. Instead, read a bit after lseeking,
to make sure we get to the end, give up if we don’t get to EOF.
This works around problems on /proc filesystems
where lseek pretends the file is empty.
Update file_size_hint when reaching EOF.
Diffstat (limited to 'java/res/values')
0 files changed, 0 insertions, 0 deletions