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