]> git.eshelyaron.com Git - emacs.git/commit
insert-file-contents shrinking Solaris file fix
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 21 Jul 2025 21:56:43 +0000 (14:56 -0700)
committerEshel Yaron <me@eshelyaron.com>
Fri, 25 Jul 2025 08:11:52 +0000 (10:11 +0200)
commit850c271a48a9227c3b743987b745bf46a232c966
treec6fec79ec5f4555caaca037889bb1f7ef0e7af69
parent8798e9d9269a531417e028811c16c96f36ebb96f
insert-file-contents shrinking Solaris file fix

This is related to recent fixes for Bug#77315.
* src/fileio.c (Finsert_file_contents): Defend against
a file shrinking to be smaller than its initial offset.
This can happen only on platforms like Solaris where
the initial offset can be positive.

(cherry picked from commit 8393e469e7f1771b4e167392eef169ab51c047b2)
src/fileio.c