diff --git a/sys/i386/linux/linux_machdep.c b/sys/i386/linux/linux_machdep.c index 23357cd2701f..5aea62a7d809 100644 --- a/sys/i386/linux/linux_machdep.c +++ b/sys/i386/linux/linux_machdep.c @@ -121,7 +121,7 @@ linux_execve(struct thread *td, struct linux_execve_args *args) args->argp, args->envp); free(newpath, M_TEMP); if (error == 0) - kern_execve(td, &eargs, NULL); + error = kern_execve(td, &eargs, NULL); exec_free_args(&eargs); return (error); }