LibC: Add execvpe() and make execvp()'ed children inherit environment.

This commit is contained in:
Andreas Kling 2019-04-26 03:16:26 +02:00
commit 490e89e240
Notes: sideshowbarker 2024-07-19 14:34:59 +09:00
3 changed files with 13 additions and 5 deletions

View file

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