std.Io.Threaded: fix fchmodat on linux with libc

This commit is contained in:
Andrew Kelley 2025-12-19 15:35:26 -08:00
parent 6aa31cedb7
commit 4025af9c05

View file

@ -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);