about summary refs log tree commit diff
path: root/src/unistd/ftruncate.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2023-02-28 12:18:43 -0500
committerRich Felker <dalias@aerifal.cx>2023-02-28 12:18:43 -0500
commitfb7fb5e4bd7ccb8efa691364404efc7804fad90c (patch)
treea92b7001707d82f2a97151d06cbd7c7e62c7e820 /src/unistd/ftruncate.c
parentb1dfb734a45d4f74c7a24c5f07d37f7e74451802 (diff)
downloadmusl-fb7fb5e4bd7ccb8efa691364404efc7804fad90c.tar.gz
musl-fb7fb5e4bd7ccb8efa691364404efc7804fad90c.tar.xz
musl-fb7fb5e4bd7ccb8efa691364404efc7804fad90c.zip
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.
Diffstat (limited to 'src/unistd/ftruncate.c')
0 files changed, 0 insertions, 0 deletions