diff options
author | Kevin (Kun) "Kassimo" Qian <kevinkassimo@gmail.com> | 2018-09-17 16:53:55 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-09-17 16:53:55 -0700 |
commit | e3d634eb218f48b7152b40d64b07ff2f0a58ca09 (patch) | |
tree | 4a62ba1d804931fa7d687663c606b7edf7f16ae5 /src/fs.rs | |
parent | 82d0638139adb64ae634d3b304b1c44f7cb358ee (diff) |
Make mode always u32 and switch to has_mode for StatRes fbs (#761)
Diffstat (limited to 'src/fs.rs')
-rw-r--r-- | src/fs.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -80,7 +80,7 @@ pub fn mkdir(path: &Path, perm: u32) -> std::io::Result<()> { #[cfg(any(unix))] fn set_dir_permission(builder: &mut DirBuilder, perm: u32) { debug!("set dir perm to {}", perm); - builder.mode(perm); + builder.mode(perm & 0o777); } #[cfg(not(any(unix)))] |