diff options
author | 2023-08-10 17:00:13 -0400 | |
---|---|---|
committer | 2023-08-10 14:00:13 -0700 | |
commit | cf12d80f5eab9989d01aa61c88aba326ce5fe71f (patch) | |
tree | 3a3920620fd2f6879a0887dfefebae8e923d6449 | |
parent | 58e74eadb5ba0d109f127283a06ff3a96e9cc7bf (diff) | |
download | bun-cf12d80f5eab9989d01aa61c88aba326ce5fe71f.tar.gz bun-cf12d80f5eab9989d01aa61c88aba326ce5fe71f.tar.zst bun-cf12d80f5eab9989d01aa61c88aba326ce5fe71f.zip |
fs.zig: create temp files with 0o700, not 0o007 (#4107)
-rw-r--r-- | src/fs.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fs.zig b/src/fs.zig index df950fc5e..fd06006f5 100644 --- a/src/fs.zig +++ b/src/fs.zig @@ -627,7 +627,7 @@ pub const FileSystem = struct { const flags = std.os.O.CREAT | std.os.O.RDWR | std.os.O.CLOEXEC; this.dir_fd = tmpdir_.fd; - this.fd = try std.os.openatZ(tmpdir_.fd, name, flags, std.os.S.IRWXO); + this.fd = try std.os.openatZ(tmpdir_.fd, name, flags, std.os.S.IRWXU); } pub fn promote(this: *Tmpfile, from_name: [*:0]const u8, destination_fd: std.os.fd_t, name: [*:0]const u8) !void { |