From f4c75527678004774cdaf98d8053bc6cccdf404e Mon Sep 17 00:00:00 2001 From: Red Bear OS Date: Sat, 11 Jul 2026 14:21:59 +0300 Subject: [PATCH] bootstrap: fix refutable pattern for Option --- bootstrap/src/exec.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bootstrap/src/exec.rs b/bootstrap/src/exec.rs index a3f7e22e5a..84931075e0 100644 --- a/bootstrap/src/exec.rs +++ b/bootstrap/src/exec.rs @@ -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.