bugfix, pipeline must continue if expand_redirection() fail

+ ft_perror_io() delete
This commit is contained in:
LuckyLaszlo
2021-12-11 21:22:43 +01:00
parent 9c660d4f92
commit 5c1d8f527c
5 changed files with 13 additions and 20 deletions

View File

@@ -6,7 +6,7 @@
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/11/16 01:57:38 by lperrey #+# #+# */
/* Updated: 2021/12/05 16:20:55 by lperrey ### ########.fr */
/* Updated: 2021/12/11 20:37:43 by lperrey ### ########.fr */
/* */
/* ************************************************************************** */
@@ -103,7 +103,7 @@ static int handle_access_error(char *file_name)
int tmp;
tmp = errno;
ft_perror_io("minishell: ", file_name);
shell_perror(file_name, "", "", 0);
errno = tmp;
if (errno == EACCES)
return (EXIT_CMD_NOT_FOUND);