diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-27 15:15:21 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-27 15:15:21 +0200 |
commit | c80b4e513eaa39e3a132b4bb47237e4673314eca (patch) | |
tree | 76dc953b20ee2657704eb6cc738b8c1e2826e402 /src/e_externs.c | |
parent | Norm and TODO update (diff) | |
download | 42-minishell-c80b4e513eaa39e3a132b4bb47237e4673314eca.tar.gz 42-minishell-c80b4e513eaa39e3a132b4bb47237e4673314eca.tar.bz2 42-minishell-c80b4e513eaa39e3a132b4bb47237e4673314eca.tar.xz 42-minishell-c80b4e513eaa39e3a132b4bb47237e4673314eca.tar.zst 42-minishell-c80b4e513eaa39e3a132b4bb47237e4673314eca.zip |
Fuck this shit
Diffstat (limited to '')
-rw-r--r-- | src/e_externs.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/e_externs.c b/src/e_externs.c index 9e2f8f4..4cc63e1 100644 --- a/src/e_externs.c +++ b/src/e_externs.c @@ -29,10 +29,9 @@ static void e_extern_child(const char *fullpath, - t_com *ptr, - t_msh *msh) + t_com *ptr, + t_msh *msh) { - dup_redirs(ptr, msh); if (execve(fullpath, ptr->argv, msh->envp) == -1) { f_exec(fullpath); @@ -59,7 +58,7 @@ static void } static void - exec_path(const char fullpath[], + e_exec_path(const char fullpath[], t_com *ptr, t_msh *msh) { @@ -95,7 +94,7 @@ void { if ((fullpath = ft_strdup(ptr->bin)) == NULL) return ; - exec_path(fullpath, ptr, msh); + e_exec_path(fullpath, ptr, msh); ft_memdel((void*)&fullpath); return ; } @@ -109,7 +108,7 @@ void } else { - exec_path(fullpath, ptr, msh); + e_exec_path(fullpath, ptr, msh); ft_memdel((void*)&fullpath); } } |