diff options
Diffstat (limited to '')
-rw-r--r-- | src/e_externs.c | 11 | ||||
-rw-r--r-- | src/f_exec.c | 6 |
2 files changed, 8 insertions, 9 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); } } diff --git a/src/f_exec.c b/src/f_exec.c index 3587700..fccfdea 100644 --- a/src/f_exec.c +++ b/src/f_exec.c @@ -21,7 +21,7 @@ void f_exec(const char fullpath[]) { ft_dprintf(STDERR_FILENO, - "minishell: %s: %s\n", - fullpath, - strerror(errno)); + "minishell: %s: %s\n", + fullpath, + strerror(errno)); } |