]> Savannah Git Hosting - gnulib.git/commit
dup3: Fix behavior for equal file descriptors on Haiku.
authorCollin Funk <collin.funk1@gmail.com>
Thu, 13 Mar 2025 01:55:26 +0000 (18:55 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Thu, 13 Mar 2025 01:55:26 +0000 (18:55 -0700)
commited91d9b1c2f697a39116da46b553dfc89474f490
tree66416aab471c7150fde52f99cf351955312d64b6
parentee27e996435f0daf0f8cd960285abb5859f50a4d
dup3: Fix behavior for equal file descriptors on Haiku.

* lib/dup3.c (dup3) [__HAIKU__]: Set errno to EINVAL and return -1 if
both file descriptors are equal.
* doc/posix-functions/dup3.texi: Document the Haiku bug.
ChangeLog
doc/posix-functions/dup3.texi
lib/dup3.c