Fix set_permissions call for non-windows

This commit is contained in:
Dennis Duda 2020-05-29 11:57:23 +02:00
parent 41d540fcb7
commit 577ac2f836

View file

@ -289,7 +289,7 @@ fn recv<B: BufRead>(dir: &Path, io: &mut B) -> PathBuf {
#[cfg(not(windows))]
fn set_permissions(path: &Path) {
t!(fs::set_permissions(&dst, Permissions::from_mode(0o755)));
t!(fs::set_permissions(&path, Permissions::from_mode(0o755)));
}
#[cfg(windows)]
fn set_permissions(_path: &Path) {}