diff --git a/src/executor/executor_child.c b/src/executor/executor_child.c index 1e64f47..923492c 100644 --- a/src/executor/executor_child.c +++ b/src/executor/executor_child.c @@ -1,12 +1,12 @@ /* ************************************************************************** */ /* */ -/* ::: :::::::: */ -/* executor_child.c :+: :+: :+: */ -/* +:+ +:+ +:+ */ -/* By: qmennen +#+ +:+ +#+ */ -/* +#+#+#+#+#+ +#+ */ -/* Created: 2025/02/12 21:25:10 by willem #+# #+# */ -/* Updated: 2025/02/27 18:12:48 by qmennen ### ########.fr */ +/* :::::::: */ +/* executor_child.c :+: :+: */ +/* +:+ */ +/* By: qmennen +#+ */ +/* +#+ */ +/* Created: 2025/02/12 21:25:10 by willem #+# #+# */ +/* Updated: 2025/03/02 22:28:55 by whaffman ######## odam.nl */ /* */ /* ************************************************************************** */ @@ -36,6 +36,7 @@ void executor_child(t_minishell *msh, t_command *command) path = executor_absolute_path(msh, command->args[0]); if (path == NULL || access(path, F_OK | X_OK) != 0) { + errno = 0; error_msg("minishell", "command not found"); return ; }