fix: absolute path not found error message

This commit is contained in:
Camille Chauvet 2023-03-30 13:05:38 +02:00
parent a941a0138f
commit 1c43d89fa1

View File

@ -6,7 +6,7 @@
/* By: cchauvet <cchauvet@student.42angouleme.fr +#+ +:+ +#+ */ /* By: cchauvet <cchauvet@student.42angouleme.fr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2023/03/27 13:39:48 by cchauvet #+# #+# */ /* Created: 2023/03/27 13:39:48 by cchauvet #+# #+# */
/* Updated: 2023/03/28 16:34:37 by cchauvet ### ########.fr */ /* Updated: 2023/03/30 13:04:53 by cchauvet ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -20,7 +20,7 @@ char *ft_get_executable_with_path(t_data *data, const char *name)
if (access(name, F_OK) != 0) if (access(name, F_OK) != 0)
{ {
data->exit_code = 127; data->exit_code = 127;
ft_eprintf("minishell: %s bash: No such file or directery\n"); ft_eprintf("minishell: %s: No such file or directery\n", name);
return (NULL); return (NULL);
} }
if (access(name, X_OK) != 0) if (access(name, X_OK) != 0)