From b30f503cadad8c748198266bc2370a65496ac2a4 Mon Sep 17 00:00:00 2001 From: Jack Halford Date: Sun, 26 Mar 2017 18:26:08 +0200 Subject: [PATCH] redirect less error msg close #199 --- 42sh/src/exec/redirect_less.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/42sh/src/exec/redirect_less.c b/42sh/src/exec/redirect_less.c index bc2cf96f..390c91e9 100644 --- a/42sh/src/exec/redirect_less.c +++ b/42sh/src/exec/redirect_less.c @@ -6,7 +6,7 @@ /* By: jhalford +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/02/06 22:09:53 by jhalford #+# #+# */ -/* Updated: 2017/03/25 02:25:58 by jhalford ### ########.fr */ +/* Updated: 2017/03/26 18:25:38 by jhalford ### ########.fr */ /* */ /* ************************************************************************** */ @@ -19,7 +19,7 @@ int redirect_less(t_redir *redir) fdnew = redir->n; if ((fdold = open_access(redir->word, F_OK | W_OK, - O_RDONLY, 0)) != 0) + O_RDONLY, 0)) < 0) return (ft_perror(NULL)); dup2(fdold, fdnew); return (0);