commit 4025af9c05f7392acb96b6085c541c6887e8b8fe (tree)
parent 6aa31cedb7b5461c06d43b813d70ab6c21375cce
Author: Andrew Kelley <andrew@ziglang.org>
Date: Fri, 19 Dec 2025 15:35:26 -0800
std.Io.Threaded: fix fchmodat on linux with libc
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/std/Io/Threaded.zig b/lib/std/Io/Threaded.zig
@@ -5153,7 +5153,7 @@ fn posixFchmodat(
if (have_fchmodat_flags or flags == 0) {
try current_thread.beginSyscall();
while (true) {
- const rc = if (have_fchmodat_flags)
+ const rc = if (have_fchmodat_flags or builtin.link_libc)
posix.system.fchmodat(dir_fd, path, mode, flags)
else
posix.system.fchmodat(dir_fd, path, mode);