1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-09-15 19:36:16 +00:00

core/mode: use libc::umask on redox

This commit is contained in:
Jeremy Soller 2021-08-06 13:20:42 -06:00
parent 1cf95c06ea
commit 073d6b5908
No known key found for this signature in database
GPG key ID: E988B49EE78A7FB1

View file

@ -35,12 +35,6 @@ pub fn parse_symbolic(
#[cfg(unix)]
use libc::umask;
#[cfg(target_os = "redox")]
unsafe fn umask(_mask: u32) -> u32 {
// XXX Redox does not currently have umask
0
}
let (mask, pos) = parse_levels(mode);
if pos == mode.len() {
return Err(format!("invalid mode ({})", mode));