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:
bors 2017-08-20 20:29:08 +00:00
commit 8c303ed879

View File

@ -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)
}
}