execv(3) now passes environ(7) to execve(2).
This commit is contained in:
parent
33645eb347
commit
60b9a84a51
|
@ -22,11 +22,13 @@
|
||||||
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
|
#define _WANT_ENVIRON
|
||||||
#include <libmaxsi/platform.h>
|
#include <libmaxsi/platform.h>
|
||||||
#include <libmaxsi/syscall.h>
|
#include <libmaxsi/syscall.h>
|
||||||
#include <libmaxsi/process.h>
|
#include <libmaxsi/process.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
namespace Maxsi
|
namespace Maxsi
|
||||||
{
|
{
|
||||||
|
@ -61,7 +63,7 @@ namespace Maxsi
|
||||||
|
|
||||||
extern "C" int execv(const char* pathname, char* const* argv)
|
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))
|
DUAL_FUNCTION(void, exit, Exit, (int status))
|
||||||
|
|
Loading…
Reference in New Issue