mirror of
https://github.com/wez/wezterm.git
synced 2024-12-23 21:32:13 +03:00
parent
cf518c9186
commit
7933500b6d
@ -21,7 +21,7 @@ pub fn set_sticky_bit(path: &Path) {
|
|||||||
if let Ok(metadata) = path.metadata() {
|
if let Ok(metadata) = path.metadata() {
|
||||||
let mut perms = metadata.permissions();
|
let mut perms = metadata.permissions();
|
||||||
let mode = perms.mode();
|
let mode = perms.mode();
|
||||||
perms.set_mode(mode | libc::S_ISVTX);
|
perms.set_mode(mode | libc::S_ISVTX as u32);
|
||||||
let _ = std::fs::set_permissions(&path, perms);
|
let _ = std::fs::set_permissions(&path, perms);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user