aboutsummaryrefslogtreecommitdiffstats
path: root/java/README
diff options
context:
space:
mode:
authorPaul Eggert2025-07-12 14:31:18 -0700
committerPaul Eggert2025-07-13 21:09:39 -0700
commitaee9b598312e282700c4eedf02b174b908479ce7 (patch)
tree87c8cd0c1d8c34944f17624007856b4d82251c28 /java/README
parent56091b6d5cccecf320796bd62e36adc64f45b614 (diff)
downloademacs-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/README')
0 files changed, 0 insertions, 0 deletions