1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-23 21:32:13 +03:00

fix build on macos

refs: #1601
This commit is contained in:
Wez Furlong 2022-01-31 08:28:46 -07:00
parent cf518c9186
commit 7933500b6d

View File

@ -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);
} }
} }