Skip to content

Commit 1aa0804

Browse files
committed
(cargo) added a rough fix for installed exe permissions
Since `os::copy_file` wasn't preserving the executable permissions, this reverts back to `run::run_program` and `cp` to install the packages.
1 parent 50423e9 commit 1aa0804

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/cargo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ fn install_to_dir(srcfile: str, destdir: str) {
863863
let newfile = path::connect(destdir, path::basename(srcfile));
864864
info(#fmt["Installing '%s'...", newfile]);
865865

866-
copy_warn(srcfile, newfile);
866+
run::run_program("cp", [srcfile, newfile]);
867867
}
868868

869869
fn copy_warn(srcfile: str, destfile: str) {

0 commit comments

Comments
 (0)