diff options
-rw-r--r-- | src/ft_m_redirs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ft_m_redirs.c b/src/ft_m_redirs.c index 66c002a..91d8553 100644 --- a/src/ft_m_redirs.c +++ b/src/ft_m_redirs.c @@ -29,7 +29,8 @@ void { if ((fd = open(ptr->rdrpath, O_RDONLY)) == -1) ft_f_file(ptr->rdrpath, msh); - /* TODO: handle < redir */ + dup2(fd, STDIN_FILENO); + close(fd); } if (ptr->redir == 1) { |