]> Savannah Git Hosting - gnulib.git/commit
dup3: Fix behavior for equal file descriptors on NetBSD.
authorCollin Funk <collin.funk1@gmail.com>
Sat, 18 May 2024 23:34:55 +0000 (16:34 -0700)
committerBruno Haible <bruno@clisp.org>
Wed, 22 May 2024 08:59:21 +0000 (10:59 +0200)
commitfd66eccd1143a76022db99b5bb8b20a1acb14384
tree9c13567324f6b61d6ed76238f947a331ce7dee8e
parent02c34f07c965109f9f9810905ae0fd7b8a27a78f
dup3: Fix behavior for equal file descriptors on NetBSD.

* lib/dup3.c (dup3) [__NetBSD__]: Check for equal file descriptors upon
a successful call to dup3. If they are equal fail with errno == EINVAL.
ChangeLog
lib/dup3.c