mirror of
https://github.com/warp-tech/warpgate.git
synced 2025-09-07 15:14:20 +08:00
parent
299ec932fc
commit
5b050e5cbd
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ fn maybe_apply_permissions<P: AsRef<Path>>(
|
|||
permissions: std::fs::Permissions,
|
||||
) -> std::io::Result<()> {
|
||||
let current = std::fs::metadata(&path)?.permissions();
|
||||
if current != permissions {
|
||||
if (current.mode() & 0o777) != permissions.mode() {
|
||||
std::fs::set_permissions(path, permissions)?;
|
||||
}
|
||||
Ok(())
|
||||
|
|
Loading…
Add table
Reference in a new issue