c'est encore cassé mais un peut moins

This commit is contained in:
2024-04-13 13:22:20 +02:00
parent 51fff7aefd
commit 90e569f231
7 changed files with 61 additions and 26 deletions

View File

@ -6,7 +6,7 @@
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/05 18:15:27 by marde-vr #+# #+# */
/* Updated: 2024/04/07 19:51:29 by tomoron ### ########.fr */
/* Updated: 2024/04/13 12:54:23 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
@ -22,6 +22,9 @@ void redirect_input(t_msh *msh)
}
else
{
printf("in_fd : %d\n", msh->in_fd);
printf("cmd : %s\n", msh->cmds->value);
is_fd_open(msh->in_fd);
if (dup2(msh->in_fd, 0) < 0)
{
perror("dup2");