mirror of
https://github.com/KeyZox71/ft_minipowershell.git
synced 2025-05-11 15:08:47 +02:00
「🏗️」 wip: testing check on in and out file
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/05/30 10:48:41 by adjoly #+# #+# */
|
||||
/* Updated: 2024/07/20 17:16:57 by adjoly ### ########.fr */
|
||||
/* Updated: 2024/07/30 17:17:13 by adjoly ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -31,8 +31,10 @@ t_cmd *get_redir_fd(void *content, t_list *tmp)
|
||||
while (tmp)
|
||||
{
|
||||
open_redir((t_redirection *)tmp->content, cmd, sign);
|
||||
if (cmd->infile == -2)
|
||||
if (cmd->infile >= -1 || cmd->outfile == -1)
|
||||
{
|
||||
if (cmd->infile == -1 || cmd->outfile == -1)
|
||||
send_error_parsing(ERROR_NO_FILE);
|
||||
free(cmd);
|
||||
return (NULL);
|
||||
}
|
||||
|
Reference in New Issue
Block a user