summaryrefslogtreecommitdiffstats
path: root/src/ft_e_lcom.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-23 14:51:38 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-23 14:51:38 +0200
commitfd7326254983f0e4ad3ca7792c8a9e2d74f61cd3 (patch)
tree52c3daa6696c4f7836f68d9005af9d29c3f69752 /src/ft_e_lcom.c
parentI don't get it (diff)
download42-minishell-fd7326254983f0e4ad3ca7792c8a9e2d74f61cd3.tar.gz
42-minishell-fd7326254983f0e4ad3ca7792c8a9e2d74f61cd3.tar.bz2
42-minishell-fd7326254983f0e4ad3ca7792c8a9e2d74f61cd3.tar.xz
42-minishell-fd7326254983f0e4ad3ca7792c8a9e2d74f61cd3.tar.zst
42-minishell-fd7326254983f0e4ad3ca7792c8a9e2d74f61cd3.zip
The worst is that it actually works
Diffstat (limited to 'src/ft_e_lcom.c')
-rw-r--r--src/ft_e_lcom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_e_lcom.c b/src/ft_e_lcom.c
index c499e05..af1b88e 100644
--- a/src/ft_e_lcom.c
+++ b/src/ft_e_lcom.c
@@ -66,7 +66,7 @@ uint8_t
dup2(fd, STDOUT_FILENO);
close(fd);
}
- else if (ptr->redir == 2)
+ if (ptr->redir == 2)
{
if ((fd = open(ptr->rdrpath,
O_CREAT | O_APPEND | O_WRONLY, 0644)))