mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
mkdir: fixed permissions behavior with umask
- umask application more closely resembles gnu
This commit is contained in:
@@ -65,8 +65,8 @@ fn get_mode(matches: &ArgMatches, mode_had_minus_prefix: bool) -> Result<u32, St
|
||||
Ok(new_mode)
|
||||
}
|
||||
None => {
|
||||
// If no mode argument is specified return the mode from umask
|
||||
Ok(mode::get_umask())
|
||||
// If no mode argument is specified return the mode derived from umask
|
||||
Ok(!mode::get_umask() & 0o0777)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user