From f661232c77e35a706582b0364f46401905311b63 Mon Sep 17 00:00:00 2001 From: mdev9 Date: Tue, 30 Apr 2024 14:50:58 +0200 Subject: [PATCH] fixed all problems --- srcs/exec_bonus.c | 2 +- srcs/exec_utils.c | 4 +++- todo | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/srcs/exec_bonus.c b/srcs/exec_bonus.c index 8e389bb..98513ad 100755 --- a/srcs/exec_bonus.c +++ b/srcs/exec_bonus.c @@ -6,7 +6,7 @@ /* By: marde-vr +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/03/28 13:50:14 by tomoron #+# #+# */ -/* Updated: 2024/04/30 14:00:36 by marde-vr ### ########.fr */ +/* Updated: 2024/04/30 14:42:26 by marde-vr ### ########.fr */ /* */ /* ************************************************************************** */ diff --git a/srcs/exec_utils.c b/srcs/exec_utils.c index 3b1974e..f859823 100644 --- a/srcs/exec_utils.c +++ b/srcs/exec_utils.c @@ -6,7 +6,7 @@ /* By: marde-vr +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/04/24 10:46:28 by marde-vr #+# #+# */ -/* Updated: 2024/04/24 14:05:18 by tomoron ### ########.fr */ +/* Updated: 2024/04/30 14:41:48 by marde-vr ### ########.fr */ /* */ /* ************************************************************************** */ @@ -16,6 +16,8 @@ void get_redirections(t_msh *msh, t_cmd *cmds) { msh->in_type = 0; msh->out_type = 0; + msh->in_fd = 0; + msh->out_fd = 0; if (first_is_in_type(cmds)) { if (!get_in_type(msh, cmds, cmds, 1)) diff --git a/todo b/todo index 6c48932..9ebe5b1 100644 --- a/todo +++ b/todo @@ -1,9 +1,9 @@ -- cat < Makefile | rev | cat -e | rev | cat - +(()) leaks when exit probably repaired: +- cat < Makefile | rev | cat -e | rev | cat - cat Makefile | commandnotfound | cat - .. # (pas de command not found) - echo -nnn -n -nnnnnn aaa -nn # (invalid write/read)