1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-02 14:07:46 +00:00

Cast umask result, and comment about Redox

This commit is contained in:
Ian Douglas Scott 2017-07-23 17:28:16 -07:00
parent d8494974bc
commit 99af79a7fa
No known key found for this signature in database
GPG key ID: 4924E10E199B5959

View file

@ -225,7 +225,7 @@ fn parse_symbolic(mut fperm: u32, mut mode: &str, file: &Path) -> Result<u32, St
#[cfg(target_os = "redox")] #[cfg(target_os = "redox")]
unsafe fn umask(_mask: u32) -> u32 { unsafe fn umask(_mask: u32) -> u32 {
// XXX // XXX Redox does not currently have umask
0 0
} }
@ -243,7 +243,7 @@ fn parse_symbolic(mut fperm: u32, mut mode: &str, file: &Path) -> Result<u32, St
mode = &mode[pos..]; mode = &mode[pos..];
let (mut srwx, pos) = parse_change(mode, fperm, file); let (mut srwx, pos) = parse_change(mode, fperm, file);
if respect_umask { if respect_umask {
srwx &= !last_umask; srwx &= !(last_umask as u32);
} }
mode = &mode[pos..]; mode = &mode[pos..];
match op { match op {