1
Fork 0
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:
Andreas Kling 2019-04-26 03:16:26 +02:00
parent 0a68e0046f
commit 490e89e240
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;