4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-22 23:17:28 +08:00
Corinna Vinschen 3124d8b436 posix_spawn_file_actions_addfchdir_np: return EBADF on negative fd
FreeBSD and Musl implement posix_spawn_file_actions_addfchdir_np
so that it checks the incoming descriptor for being negative, and,
if so, return with EBADF.  The POSIX proposal defining
posix_spawn_file_actions_addfchdir follows this behaviour, see
https://www.austingroupbugs.net/view.php?id=1208

Fixes: 7e03fc35f528 ("Add posix_spawn_file_actions_add{f}chdir_np")
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-04-19 20:48:14 +02:00
..
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-10-11 08:29:16 +02:00
2018-01-17 11:47:30 -06:00
2018-01-17 11:47:30 -06:00
2018-01-17 11:47:30 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2021-02-09 11:07:59 +01:00
2018-01-17 11:47:26 -06:00
2021-09-03 12:26:17 +02:00
2018-01-17 11:47:26 -06:00
2022-08-31 15:18:08 -04:00
2022-08-31 15:18:08 -04:00