]> git.eshelyaron.com Git - emacs.git/commit
insert-file-contents errno confusion
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 13 Jul 2025 01:14:26 +0000 (18:14 -0700)
committerEshel Yaron <me@eshelyaron.com>
Thu, 24 Jul 2025 08:47:17 +0000 (10:47 +0200)
commit5e398b10aa96e1ade714b535eafcbeba054abea0
tree8295d3f4bd0332cabfab4cfe5430817b8d9c08bc
parent722c9d9d1d69ea81b14a455ff85fb39875b961f2
insert-file-contents errno confusion

* src/fileio.c (read_non_regular): Return negation of
errno on failure, instead of -1.
(Finsert_file_contents): Signal with correct errno when a read fails.

(cherry picked from commit 490311f86a97fd8d6633e28143a26e7618f15e79)
src/fileio.c