summaryrefslogtreecommitdiff
path: root/src/fs.rs
diff options
context:
space:
mode:
authorKevin (Kun) "Kassimo" Qian <kevinkassimo@gmail.com>2018-09-17 16:53:55 -0700
committerRyan Dahl <ry@tinyclouds.org>2018-09-17 16:53:55 -0700
commite3d634eb218f48b7152b40d64b07ff2f0a58ca09 (patch)
tree4a62ba1d804931fa7d687663c606b7edf7f16ae5 /src/fs.rs
parent82d0638139adb64ae634d3b304b1c44f7cb358ee (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.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fs.rs b/src/fs.rs
index 33323b87b..efc8b91b1 100644
--- a/src/fs.rs
+++ b/src/fs.rs
@@ -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)))]