diff options
Diffstat (limited to 'srcx/util.c')
-rw-r--r-- | srcx/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/srcx/util.c b/srcx/util.c index 59226fd..214707e 100644 --- a/srcx/util.c +++ b/srcx/util.c @@ -403,9 +403,9 @@ int run_dup_command(const char* jail, const char* cmd, char* env[], /* Okay, now run whatever command it was */ if(args) - execve(cmd, args, env); + execve(cmd, args, env ? env : environ); else - execle(cmd, cmd, NULL, env); + execle(cmd, cmd, NULL, env ? env : environ); /* In case it returns then have to do this to get children to disconnect from stdout */ |