authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-30 21:55:11 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-30 21:55:11 -07:00
log770d3bdc1b458cc6d4e04341315b6da5c74b2f3b
treebd62b57d4a93f8464f9d52601374aee199751842
parentb54aba422e2b1f5bd1c115f1a8a93549ec600899
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

Dir.copyFile: preserve mode


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

Dir.zig+1-1
...@@ -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();
421421
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();
424424
425 if (os == .linux) {425 if (os == .linux) {