summaryrefslogtreecommitdiffstats
path: root/src/e_redirs.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-10-22 21:55:05 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-10-22 21:55:05 +0200
commit9d643a31f647e48538e4ea4870b9f20f4a23882b (patch)
treecac63b18f9f37731c79b4b07d6f9fbbb8d21cc33 /src/e_redirs.c
parentError handled (diff)
download42-minishell-9d643a31f647e48538e4ea4870b9f20f4a23882b.tar.gz
42-minishell-9d643a31f647e48538e4ea4870b9f20f4a23882b.tar.bz2
42-minishell-9d643a31f647e48538e4ea4870b9f20f4a23882b.tar.xz
42-minishell-9d643a31f647e48538e4ea4870b9f20f4a23882b.tar.zst
42-minishell-9d643a31f647e48538e4ea4870b9f20f4a23882b.zip
Fix but more to do
Diffstat (limited to 'src/e_redirs.c')
-rw-r--r--src/e_redirs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/e_redirs.c b/src/e_redirs.c
index 1d66226..f559ca1 100644
--- a/src/e_redirs.c
+++ b/src/e_redirs.c
@@ -90,8 +90,8 @@ void e_dup_redirs(const t_com *com, t_msh *msh)
e_redir_plus_one(ptr, msh);
else if (ptr->redir == 2)
e_redir_plus_two(ptr, msh);
- /* else if (ptr->redir == 3) */
- /* e_redir_plus_three(ptr, msh); */
+ else if (ptr->redir == 3)
+ dup2(ptr->right_fd, ptr->fd);
ptr = ptr->next;
}
}