mirror of
https://github.com/rust-lang/rust.git
synced 2026-03-23 20:35:31 +00:00
Auto merge of #44000 - ids1024:redox-exec-error, r=alexcrichton
redox: Correct error on exec when file is not found `.raw_os_error()` (called in `spawn()`) returned None, so this produced an incorrect error.
This commit is contained in:
@@ -336,7 +336,7 @@ impl Command {
|
||||
panic!("return from exec without err");
|
||||
}
|
||||
} else {
|
||||
io::Error::new(io::ErrorKind::NotFound, "")
|
||||
io::Error::from_raw_os_error(syscall::ENOENT)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user