execution fix

This commit is contained in:
Camille Chauvet 2023-02-23 15:12:41 +01:00
parent 413d75b94c
commit b98717ae1a

View File

@ -86,7 +86,6 @@ static int ft_excutor(t_cmd *cmd, t_list **env)
tab = env_to_strs(env); tab = env_to_strs(env);
if (tab == NULL) if (tab == NULL)
return (1); return (1);
tab = NULL;
dup2(cmd->fd_out, 1); dup2(cmd->fd_out, 1);
dup2(cmd->fd_in, 0); dup2(cmd->fd_in, 0);
execve(cmd->executable, cmd->args, tab); execve(cmd->executable, cmd->args, tab);