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:
parent
d8494974bc
commit
99af79a7fa
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue