| ... | @@ -419,7 +419,7 @@ pub fn copyFile(source_dir: Dir, source_path: [:0]const u8, dest_dir: Dir, dest_ | ... | @@ -419,7 +419,7 @@ pub fn copyFile(source_dir: Dir, source_path: [:0]const u8, dest_dir: Dir, dest_ |
| 419 | defer source_file.close(); | 419 | defer source_file.close(); |
| 420 | const source_stat = try source_file.stat(); | 420 | const source_stat = try source_file.stat(); |
| 421 | | 421 | |
| 422 | const dest_file = try dest_dir.createFile(dest_path, .{ .exclusive = true }); | 422 | const dest_file = try dest_dir.createFile(dest_path, .{ .exclusive = true, .mode = source_stat.mode }); |
| 423 | defer dest_file.close(); | 423 | defer dest_file.close(); |
| 424 | | 424 | |
| 425 | if (os == .linux) { | 425 | if (os == .linux) { |