mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-05 14:29:28 +00:00
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:
parent
7c0cbd3bfa
commit
c035ac04e6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=148623
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user