Skip to main content

check_executable

Function check_executable 

Source
fn check_executable(plan: &ExecPlan) -> Result<(), i32>
Expand description

Refuses a plan the kernel would refuse, with the kernel’s errno.

A shell relies on ENOEXEC to run a script without #! itself; a trampoline that died instead would take the shell with it.