authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-01 16:08:28 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-01 16:08:28 -07:00
log1bc42281b894cb90b5c2bfe9804c686122bd059e
treed3c5691bbd61ffc95f2c11482de748a00b19f4d8
parentd2e949cf9bb2aa088b3c21f4c4ea34ec71ae62d0
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

fix Dir.createFile()


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

Dir.zig+1-1
......@@ -266,7 +266,7 @@ pub fn createFile(self: Dir, sub_path: [:0]const u8, flags: CreateFlags) !File {
266266 if (flags.truncate) oflag |= sys.O.TRUNC;
267267 if (flags.exclusive) oflag |= sys.O.EXCL;
268268 oflag |= sys.O.CLOEXEC;
269 return .{ .fd = @enumFromInt(try sys.openat(@intFromEnum(self.fd), sub_path.ptr, oflag)) };
269 return .{ .fd = @enumFromInt(try sys.openat4(@intFromEnum(self.fd), sub_path.ptr, oflag, flags.mode)) };
270270}
271271
272272pub const CreateFlags = packed struct {