experimenteing with errno an error msges
This commit is contained in:
parent
3d82b549c7
commit
29ac06c11a
@ -1,12 +1,12 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* executor_child.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: qmennen <qmennen@student.codam.nl> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* :::::::: */
|
||||
/* executor_child.c :+: :+: */
|
||||
/* +:+ */
|
||||
/* By: qmennen <qmennen@student.codam.nl> +#+ */
|
||||
/* +#+ */
|
||||
/* Created: 2025/02/12 21:25:10 by willem #+# #+# */
|
||||
/* Updated: 2025/02/27 18:12:48 by qmennen ### ########.fr */
|
||||
/* 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 ;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user