From 4025af9c05f7392acb96b6085c541c6887e8b8fe Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 19 Dec 2025 15:35:26 -0800 Subject: [PATCH] std.Io.Threaded: fix fchmodat on linux with libc --- lib/std/Io/Threaded.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/Io/Threaded.zig b/lib/std/Io/Threaded.zig index 7dd9ef51009f8bfd998cf62afb09edf68d659d76..9e9027ee10de1ee1b616db78a29b16507b76c389 100644 --- 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); -- 2.54.0