]> git.eshelyaron.com Git - emacs.git/commit
insert-file-contents initial offset fix
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 12 Jul 2025 19:36:56 +0000 (12:36 -0700)
committerEshel Yaron <me@eshelyaron.com>
Thu, 24 Jul 2025 08:48:39 +0000 (10:48 +0200)
commitdc9e3ba670ef68b94e0c3af370b74c7d08f4e528
treebdde69435b96196045beaef8e01faddbb28d604c
parentac43febdbdb69c3fb2eddf41ab537deb6b790b3a
insert-file-contents initial offset fix

* src/fileio.c (Finsert_file_contents): Don’t assume that a
newly-opened file is at offset 0, even if it is a regular file.
This might not be true for files like /dev/stdin.

(cherry picked from commit e6c1f46fb1a703b4183814b580958f88fe9479a8)
src/fileio.c