bootstrap: fix refutable pattern for Option<FexecResult>

This commit is contained in:
Red Bear OS
2026-07-11 14:21:59 +03:00
parent 479138d02f
commit f4c7552767
+4 -1
View File
@@ -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.