summaryrefslogtreecommitdiff
path: root/src/fs.rs
diff options
context:
space:
mode:
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)))]