mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
execv(3) now passes environ(7) to execve(2).
This commit is contained in:
parent
33645eb347
commit
60b9a84a51
1 changed files with 3 additions and 1 deletions
|
@ -22,11 +22,13 @@
|
|||
|
||||
*******************************************************************************/
|
||||
|
||||
#define _WANT_ENVIRON
|
||||
#include <libmaxsi/platform.h>
|
||||
#include <libmaxsi/syscall.h>
|
||||
#include <libmaxsi/process.h>
|
||||
#include <stdio.h>
|
||||
#include <dirent.h>
|
||||
#include <unistd.h>
|
||||
|
||||
namespace Maxsi
|
||||
{
|
||||
|
@ -61,7 +63,7 @@ namespace Maxsi
|
|||
|
||||
extern "C" int execv(const char* pathname, char* const* argv)
|
||||
{
|
||||
return execve(pathname, argv, NULL);
|
||||
return execve(pathname, argv, environ);
|
||||
}
|
||||
|
||||
DUAL_FUNCTION(void, exit, Exit, (int status))
|
||||
|
|
Loading…
Add table
Reference in a new issue