diff --git a/src/executor/executor_child.c b/src/executor/executor_child.c index 27f1d7c..904bedd 100644 --- a/src/executor/executor_child.c +++ b/src/executor/executor_child.c @@ -1,12 +1,12 @@ /* ************************************************************************** */ /* */ -/* :::::::: */ -/* executor_child.c :+: :+: */ -/* +:+ */ -/* By: willem +#+ */ -/* +#+ */ -/* Created: 2025/02/12 21:25:10 by willem #+# #+# */ -/* Updated: 2025/02/26 16:09:44 by whaffman ######## odam.nl */ +/* ::: :::::::: */ +/* executor_child.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: qmennen +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2025/02/12 21:25:10 by willem #+# #+# */ +/* Updated: 2025/02/26 18:20:34 by qmennen ### ########.fr */ /* */ /* ************************************************************************** */ @@ -21,11 +21,11 @@ void executor_child(t_minishell *msh, t_command *command) if (command->fd_out != 1) dup2(command->fd_out, 1); executor_close_fds(command->n_fds); - path = executor_absolute_path(msh, command->command); + path = executor_absolute_path(msh, command->args[0]); if (path == NULL) { ft_putstr_fd(RED BOLD, 2); - ft_putstr_fd(command->command, 2); + ft_putstr_fd(command->args[0], 2); ft_putstr_fd(": " RESET "command not found\n", 2); return ; }