Files
freebsd/usr.bin/diff
Jilles Tjoelker 8bf4902569 diff: Correct fd 0 case on pipe
After git commit c8d40bf8ec, if fd 0 was
not open, it is left with CLOEXEC set and therefore fails. This is an
unlikely situation, but fixing it reduces the size of the code (by using
posix_spawn_file_actions_adddup2's special case if the two file
descriptor numbers are the same).

At the same time, check the error code from
posix_spawn_file_actions_adddup2.

Reviewed by:	bapt
Differential Revision:	https://reviews.freebsd.org/D56910
2026-06-03 22:50:38 +02:00
..
2026-02-13 21:19:16 +01:00
…
2026-02-19 08:25:40 -05:00
2026-03-26 10:25:50 +01:00
…
2026-06-03 22:50:38 +02:00
2026-02-05 15:39:53 +01:00
…
…
…