From 6090784c02cdd1f2812e293ac2956c10cd830129 Mon Sep 17 00:00:00 2001 From: Camille Chauvet Date: Fri, 17 Feb 2023 13:27:40 +0100 Subject: [PATCH] add: env_to_strs support for execve --- execution.c | 7 +++---- minishell.h | 3 ++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/execution.c b/execution.c index 615cc50..2ebe280 100644 --- a/execution.c +++ b/execution.c @@ -70,10 +70,9 @@ static int ft_excutor(t_cmd *cmd, t_list **env) return (1); if (pid == 0) { - //TODO DO THIS - /* tab = t_env2tab(env); */ - /* if (tab == NULL) */ - /* return (1); */ + tab = env_to_strs(env); + if (tab == NULL) + return (1); tab = NULL; dup2(cmd->fd_out, 1); dup2(cmd->fd_in, 0); diff --git a/minishell.h b/minishell.h index 8f6d20f..1ab9e4b 100644 --- a/minishell.h +++ b/minishell.h @@ -6,7 +6,7 @@ /* By: cchauvet