herpderp (redux)

This commit is contained in:
2024-03-23 19:18:32 +01:00
parent 0b81c8e3b0
commit 19bf6c24ff
5 changed files with 212 additions and 24 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/03/23 18:14:05 by marde-vr ### ########.fr */
/* Updated: 2024/03/23 19:02:06 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
@ -36,9 +36,9 @@ int file_access(t_msh *msh, int *found)
int fd;
fd = open(msh->cmds->token, O_DIRECTORY);
close(fd);
if (fd != -1)
{
close(fd);
ft_printf_fd(2, "minishell: %s: Is a directory\n", msh->cmds->token);
g_return_code = 126;
return (0);