mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 23:25:20 +00:00
LibC: Add execvpe() and make execvp()'ed children inherit environment.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user