authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-12-19 15:35:26-08:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-12-23 22:15:11-08:00
log4025af9c05f7392acb96b6085c541c6887e8b8fe
tree8dfc76aafdabe1d66168327d1313c9ca79a65675
parent6aa31cedb7b5461c06d43b813d70ab6c21375cce

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


1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/Io/Threaded.zig+1-1
...@@ -5153,7 +5153,7 @@ fn posixFchmodat(...@@ -5153,7 +5153,7 @@ fn posixFchmodat(
5153 if (have_fchmodat_flags or flags == 0) {5153 if (have_fchmodat_flags or flags == 0) {
5154 try current_thread.beginSyscall();5154 try current_thread.beginSyscall();
5155 while (true) {5155 while (true) {
5156 const rc = if (have_fchmodat_flags)5156 const rc = if (have_fchmodat_flags or builtin.link_libc)
5157 posix.system.fchmodat(dir_fd, path, mode, flags)5157 posix.system.fchmodat(dir_fd, path, mode, flags)
5158 else5158 else
5159 posix.system.fchmodat(dir_fd, path, mode);5159 posix.system.fchmodat(dir_fd, path, mode);