fix pipe2 silently ignoring unknown flags on old kernels
authorRich Felker <dalias@aerifal.cx>
Tue, 28 Feb 2023 17:18:43 +0000 (12:18 -0500)
committerRich Felker <dalias@aerifal.cx>
Tue, 28 Feb 2023 17:18:43 +0000 (12:18 -0500)
commitfb7fb5e4bd7ccb8efa691364404efc7804fad90c
treea92b7001707d82f2a97151d06cbd7c7e62c7e820
parentb1dfb734a45d4f74c7a24c5f07d37f7e74451802
fix pipe2 silently ignoring unknown flags on old kernels

kernels using the fallback have an inherent close-on-exec race
condition and as such support for them is only best-effort anyway.
however, ignoring potential new flags is still very bad behavior.
instead, fail with EINVAL.
src/unistd/pipe2.c