From 1bc42281b894cb90b5c2bfe9804c686122bd059e Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Fri, 1 May 2026 16:08:28 -0700 Subject: [PATCH] fix Dir.createFile() --- Dir.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dir.zig b/Dir.zig index 40ed994fdf3ae22704d6da8d6766ca18a25145d8..a17bbed0f3bb4bd443ec8c426aca877255198a01 100644 --- a/Dir.zig +++ b/Dir.zig @@ -266,7 +266,7 @@ pub fn createFile(self: Dir, sub_path: [:0]const u8, flags: CreateFlags) !File { if (flags.truncate) oflag |= sys.O.TRUNC; if (flags.exclusive) oflag |= sys.O.EXCL; oflag |= sys.O.CLOEXEC; - return .{ .fd = @enumFromInt(try sys.openat(@intFromEnum(self.fd), sub_path.ptr, oflag)) }; + return .{ .fd = @enumFromInt(try sys.openat4(@intFromEnum(self.fd), sub_path.ptr, oflag, flags.mode)) }; } pub const CreateFlags = packed struct { -- 2.54.0