summaryrefslogtreecommitdiffstats
path: root/src/unix.rs
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2019-04-25 22:21:28 -0400
committerJiayi Zhao <jeff.no.zhao@gmail.com>2019-04-25 22:21:28 -0400
commit744508c20168dd8b345096331ecc86dda168d28f (patch)
treeb2862970352e0329d8fe3169ecbc5fee3fa31bfe /src/unix.rs
parentb82434c942ee528ce0aa72399512410eebb1bc62 (diff)
attempt to fix mac chmod issues
Diffstat (limited to 'src/unix.rs')
-rw-r--r--src/unix.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unix.rs b/src/unix.rs
index 796c0fc..b63ac32 100644
--- a/src/unix.rs
+++ b/src/unix.rs
@@ -62,7 +62,7 @@ pub fn set_mode(path: &Path, mode: u32) {
if let Some(s) = os_path.to_str() {
let svec: Vec<i8> = s.bytes().map(|ch| ch as i8).collect();
unsafe {
- libc::chmod(svec.as_ptr(), mode.into());
+ libc::chmod(svec.as_ptr(), mode as libc::mode_t);
}
}
}