From 910a4dcf7f40dc221430730f968bd1576713d934 Mon Sep 17 00:00:00 2001 From: Quinten Mennen Date: Wed, 26 Feb 2025 16:45:28 +0100 Subject: [PATCH] I can't check for a file that doesn't exist --- src/redirect/redirect_get_outputs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/redirect/redirect_get_outputs.c b/src/redirect/redirect_get_outputs.c index ec854b5..8384e02 100644 --- a/src/redirect/redirect_get_outputs.c +++ b/src/redirect/redirect_get_outputs.c @@ -30,7 +30,7 @@ t_list *redirect_get_outputs(t_minishell *msh, t_list *list) current = current->next; continue ; } - if (redirect_is_valid(current, token, F_OK | W_OK)) + if (redirect_is_valid(current, token, -1)) { ft_lstadd_front(&redirects, ft_lstnew_safe(msh, redirect_new(msh, token->type, ft_strdup_safe(msh, ((t_token *)current->next->content)->value))));