diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-23 20:02:35 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-23 20:02:35 +0200 |
commit | 6ae7b0154905e2a096a3953e11c0fdbb3f1a199f (patch) | |
tree | 36b6f8dca7381af9194a3c69acac3727e3433c7b /src/ft_e_externs.c | |
parent | y a du taff (diff) | |
download | 42-minishell-6ae7b0154905e2a096a3953e11c0fdbb3f1a199f.tar.gz 42-minishell-6ae7b0154905e2a096a3953e11c0fdbb3f1a199f.tar.bz2 42-minishell-6ae7b0154905e2a096a3953e11c0fdbb3f1a199f.tar.xz 42-minishell-6ae7b0154905e2a096a3953e11c0fdbb3f1a199f.tar.zst 42-minishell-6ae7b0154905e2a096a3953e11c0fdbb3f1a199f.zip |
I am happy
Diffstat (limited to '')
-rw-r--r-- | src/ft_e_externs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_e_externs.c b/src/ft_e_externs.c index eb8cfed..448a243 100644 --- a/src/ft_e_externs.c +++ b/src/ft_e_externs.c @@ -61,7 +61,7 @@ ft_e_extern_child(const char *fullpath, int32_t ret; ft_dup_redirs(ptr, msh); - ret = execve(fullpath, ptr->argv, NULL); + ret = execve(fullpath, ptr->argv, msh->envp); /* TODO: handle execve failed */ ft_lcom_clear(&msh->curr); ft_s_destroy(msh); |