mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +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:
commit
8c303ed879
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user