From 59f14713067c59751dff4d6f73f81893a2284793 Mon Sep 17 00:00:00 2001 From: Lateef Jackson Date: Sun, 11 Oct 2026 22:02:58 -0700 Subject: [PATCH] On Linux the system call of renameat2 return an INVAL error. This is not a bug it should map to which should OperationUnsupported error is a better fit to the system call response. --- 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 a72aa2b5c5f129414529ef956f46bd53c3fb78b4..79cc01c21d16bdbd6308b74740227731733cd3c3 100644 --- a/lib/std/Io/Threaded.zig +++ b/lib/std/Io/Threaded.zig @@ -8085,7 +8085,7 @@ fn dirRenamePreserveLinux( .XDEV => return syscall.fail(error.CrossDevice), .ILSEQ => return syscall.fail(error.BadPathName), .FAULT => |err| return syscall.errnoBug(err), - .INVAL => |err| return syscall.errnoBug(err), + .INVAL => return syscall.fail(error.OperationUnsupported), else => |err| return syscall.unexpectedErrno(err), }; } -- 2.54.0