mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibC: Add execvpe() and make execvp()'ed children inherit environment.
This commit is contained in:
parent
0a68e0046f
commit
490e89e240
Notes:
sideshowbarker
2024-07-19 14:34:59 +09:00
Author: https://github.com/awesomekling
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