bootstrap: fix refutable pattern for Option<FexecResult>
This commit is contained in:
@@ -252,7 +252,10 @@ pub fn main() -> ! {
|
||||
let _ = libredox::call::write(1, alloc::format!("fexec_impl failed: {}\n", e).as_bytes());
|
||||
e
|
||||
})
|
||||
.expect("failed to execute init");
|
||||
.expect("failed to execute init")
|
||||
else {
|
||||
panic!("fexec_impl returned None for init");
|
||||
};
|
||||
|
||||
// According to elf(5), PT_INTERP requires that the interpreter path be
|
||||
// null-terminated. Violating this should therefore give the "format error" ENOEXEC.
|
||||
|
||||
Reference in New Issue
Block a user