musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat
-rw-r--r--src/unistd/faccessat.c 2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unistd/faccessat.c b/src/unistd/faccessat.c
index 1083467f..821e13f5 100644
--- a/src/unistd/faccessat.c
+++ b/src/unistd/faccessat.c
@@ -34,7 +34,7 @@ int faccessat(int fd, const char *filename, int amode, int flag)
sigset_t set;
int ret, p[2];
- if (pipe(p)) return __syscall_ret(-EBUSY);
+ if (pipe2(p, O_CLOEXEC)) return __syscall_ret(-EBUSY);
struct ctx c = { .fd = fd, .filename = filename, .amode = amode, .p = p[1] };
__block_all_sigs(&set);
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月18日 00:28:13 +0000

AltStyle によって変換されたページ (->オリジナル) /