/* By: ljiriste <ljiriste@student.42prague.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/07/21 08:57:54 by ljiriste #+# #+# */
-/* Updated: 2024/08/01 15:16:57 by ljiriste ### ########.fr */
+/* Updated: 2024/08/01 15:30:29 by ljiriste ### ########.fr */
/* */
/* ************************************************************************** */
free(filename);
return (1);
}
- redir = (t_redirection){.from_to_fds[0] = sec_fd, .from_to_fds[1] = fd, .created = 0};
+ redir = (t_redirection){.from_to_fds[0] = fd, .from_to_fds[1] = sec_fd, .created = 0};
}
else
{
free(delimiter);
if (err)
return (1);
- redir = (t_redirection){.from_to_fds[0] = pipe_fds[0], .from_to_fds[1] = fd, .created = 1};
+ redir = (t_redirection){.from_to_fds[0] = fd, .from_to_fds[1] = pipe_fds[0], .created = 1};
return (ft_vec_append(redirections, &redir) != success);
}