diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-23 14:51:38 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-23 14:51:38 +0200 |
commit | fd7326254983f0e4ad3ca7792c8a9e2d74f61cd3 (patch) | |
tree | 52c3daa6696c4f7836f68d9005af9d29c3f69752 /src/ft_e_lcom.c | |
parent | I don't get it (diff) | |
download | 42-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.c | 2 |
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))) |