ft_printfd_fd -> fprintf

This commit is contained in:
2024-04-18 17:57:17 +02:00
parent be46825893
commit 9053276342
11 changed files with 49 additions and 49 deletions

View File

@ -6,7 +6,7 @@
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/05 18:19:26 by marde-vr #+# #+# */
/* Updated: 2024/04/14 11:29:02 by marde-vr ### ########.fr */
/* Updated: 2024/04/18 17:56:05 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
@ -68,7 +68,7 @@ int file_access(t_msh *msh, int *found)
if (fd != -1)
{
close(fd);
ft_printf_fd(2, "minishell: %s: Is a directory\n", msh->tokens->value);
fprintf(stderr, "minishell: %s: Is a directory\n", msh->tokens->value);
g_return_code = 126;
return (0);
}
@ -76,7 +76,7 @@ int file_access(t_msh *msh, int *found)
*found = 1;
else
{
ft_printf_fd(2, "minishell: %s: ", msh->tokens->value);
fprintf(stderr, "minishell: %s: ", msh->tokens->value);
perror("");
g_return_code = 127;
if (access(msh->tokens->value, F_OK) != -1)