fix: execve failed

This commit is contained in:
Camille Chauvet 2023-03-30 14:30:13 +02:00
parent cdfa81328b
commit 6f3b1ab918

View File

@ -6,7 +6,7 @@
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/02/21 12:45:16 by cchauvet #+# #+# */
/* Updated: 2023/03/29 18:53:35 by cchauvet ### ########.fr */
/* Updated: 2023/03/30 14:03:07 by cchauvet ### ########.fr */
/* */
/* ************************************************************************** */
@ -58,7 +58,6 @@ static bool ft_executor(t_cmd *cmd, char **env, int fd)
ft_closer(cmd->fd_in);
ft_closer(cmd->fd_out);
execve(cmd->executable, cmd->args, env);
ft_eprintf("minishell: permission denied: %s\n", cmd->executable);
return (1);
}
return (0);