Skip to content

Commit

Permalink
macho: fix file mode in -r mode
Browse files Browse the repository at this point in the history
  • Loading branch information
kubkon committed Jan 4, 2024
1 parent 93cb5b2 commit d8519cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MachO.zig
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ pub fn openPath(allocator: Allocator, options: Options, thread_pool: *ThreadPool
const file = try options.emit.directory.createFile(options.emit.sub_path, .{
.truncate = true,
.read = true,
.mode = if (builtin.os.tag == .windows) 0 else 0o777,
.mode = if (builtin.os.tag == .windows) 0 else if (options.relocatable) 0o666 else 0o777,
});
errdefer file.close();

Expand Down

0 comments on commit d8519cb

Please sign in to comment.