diff options
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); } } |