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/10/08 09:25:35 by lperrey #+# #+# */
/* Updated: 2021/12/11 20:16:36 by lperrey ### ########.fr */
/* Updated: 2021/12/11 20:59:40 by lperrey ### ########.fr */
/* */
/* ************************************************************************** */
@@ -200,12 +200,6 @@ void *ft_lstnew_generic(size_t lst_size, size_t content_size)
return (elem);
}
void ft_perror_io(char *err_str, char *io_file)
{
ft_putstr_fd(err_str, STDERR_FILENO);
perror(io_file);
}
int ft_reti_perror_io(int ret, char *err_str, char *io_file)
{
ft_putstr_fd(err_str, STDERR_FILENO);