summaryrefslogtreecommitdiffstats
path: root/src/e_redirs.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-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;
}
}