mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-03 18:50:02 +00:00
Rm set_permissions
in BinFile::install_bin
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
d4105585db
commit
e9c86dfad4
1 changed files with 0 additions and 7 deletions
|
@ -86,13 +86,6 @@ impl BinFile {
|
||||||
);
|
);
|
||||||
atomic_install(&self.source, &self.dest)?;
|
atomic_install(&self.source, &self.dest)?;
|
||||||
|
|
||||||
#[cfg(target_family = "unix")]
|
|
||||||
{
|
|
||||||
use std::os::unix::fs::PermissionsExt;
|
|
||||||
debug!("Set permissions 755 on '{}'", self.dest.display());
|
|
||||||
std::fs::set_permissions(&self.dest, std::fs::Permissions::from_mode(0o755))?;
|
|
||||||
}
|
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue