mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:48:11 +00:00
LibC: Add execvpe() and make execvp()'ed children inherit environment.
This commit is contained in:
parent
0a68e0046f
commit
490e89e240
3 changed files with 13 additions and 5 deletions
|
@ -442,6 +442,8 @@ int Process::sys$execve(const char* filename, const char** argv, const char** en
|
|||
// On success, the kernel stack will be lost.
|
||||
if (!validate_read_str(filename))
|
||||
return -EFAULT;
|
||||
if (!*filename)
|
||||
return -ENOENT;
|
||||
if (argv) {
|
||||
if (!validate_read_typed(argv))
|
||||
return -EFAULT;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue