summaryrefslogtreecommitdiffstats
path: root/src/ft_e_externs.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-23 19:55:54 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-23 19:55:54 +0200
commit026cb9bf7c4c80b34ecabab27409681be7c17a41 (patch)
tree420ba377ce417b0c78f5d74d093900e8dd6faacb /src/ft_e_externs.c
parentC'est pas bon ca (diff)
download42-minishell-026cb9bf7c4c80b34ecabab27409681be7c17a41.tar.gz
42-minishell-026cb9bf7c4c80b34ecabab27409681be7c17a41.tar.bz2
42-minishell-026cb9bf7c4c80b34ecabab27409681be7c17a41.tar.xz
42-minishell-026cb9bf7c4c80b34ecabab27409681be7c17a41.tar.zst
42-minishell-026cb9bf7c4c80b34ecabab27409681be7c17a41.zip
y a du taff
Diffstat (limited to '')
-rw-r--r--src/ft_e_externs.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ft_e_externs.c b/src/ft_e_externs.c
index bf56878..eb8cfed 100644
--- a/src/ft_e_externs.c
+++ b/src/ft_e_externs.c
@@ -60,10 +60,8 @@ ft_e_extern_child(const char *fullpath,
{
int32_t ret;
- (void)fullpath;
- (void)ptr;
ft_dup_redirs(ptr, msh);
- ret = execve("/bin/ls", argv, NULL);
+ ret = execve(fullpath, ptr->argv, NULL);
/* TODO: handle execve failed */
ft_lcom_clear(&msh->curr);
ft_s_destroy(msh);