1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-04 06:57:47 +00:00

mktemp fix for Redox

This commit is contained in:
Ian Douglas Scott 2017-08-12 15:17:37 -07:00
parent 71e8d7ad98
commit de4bee2321
No known key found for this signature in database
GPG key ID: 4924E10E199B5959

View file

@ -11,7 +11,7 @@ use std::path::Path;
// enough that an attacker will run out of luck before we run out of patience. // enough that an attacker will run out of luck before we run out of patience.
const NUM_RETRIES: u32 = 1 << 31; const NUM_RETRIES: u32 = 1 << 31;
#[cfg(unix)] #[cfg(any(unix, target_os = "redox"))]
fn create_dir<P: AsRef<Path>>(path: P) -> IOResult<()> { fn create_dir<P: AsRef<Path>>(path: P) -> IOResult<()> {
use std::fs::DirBuilder; use std::fs::DirBuilder;
use std::os::unix::fs::DirBuilderExt; use std::os::unix::fs::DirBuilderExt;