From 5119cf6ffd0cf92586bc26f3f2d6e1e623fd17a8 Mon Sep 17 00:00:00 2001 From: eshom Date: Wed, 18 Mar 2026 22:36:57 +0200 Subject: [PATCH] std.Io.Threaded: syscall with O_TMPFILE flag can return OPNOTSUPP --- 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 b8deda5845..3f47272c12 100644 --- a/lib/std/Io/Threaded.zig +++ b/lib/std/Io/Threaded.zig @@ -4704,7 +4704,7 @@ fn dirCreateFileAtomic( try syscall.checkCancel(); continue; }, - .ISDIR, .NOENT => { + .ISDIR, .NOENT, .OPNOTSUPP => { // Ambiguous error code. It might mean the file system // does not support O_TMPFILE. Therefore, we must fall // back to not using O_TMPFILE.