Propagate error code of kern_execve() to the caller properly.

PR:		81670
Submitted by:	Andrew Bliznak <andriko.b@gmail.com>
Pointy hat to:	sobomax
This commit is contained in:
Maxim Sobolev 2005-08-01 17:35:48 +00:00
parent 7c0cbd3bfa
commit c035ac04e6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=148623

View File

@ -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);
}