Skip to content

Commit

Permalink
fix type in error.c (Is a directory)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggjulio committed Sep 11, 2020
1 parent 74da3f8 commit 0e4ecc4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions srcs/error/error.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: juligonz <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/08/23 13:40:40 by hwinston #+# #+# */
/* Updated: 2020/09/11 01:07:55 by juligonz ### ########.fr */
/* Updated: 2020/09/11 21:34:11 by juligonz ### ########.fr */
/* */
/* ************************************************************************** */

Expand All @@ -20,7 +20,6 @@ void error(char *cmd, const char *arg)
if (arg[0] != '\0')
ft_dprintf(STDERR_FILENO, "%s: ", arg);
ft_dprintf(STDERR_FILENO, "%s\n", strerror(errno));
// g_sh.status = STATUS_CMD_NOT_FOUND;
}

void bad_command(char *cmd)
Expand All @@ -34,7 +33,7 @@ int permission_error(char *command, int option)
ft_dprintf(STDERR_FILENO, "%s: ", g_sh.name);
ft_dprintf(STDERR_FILENO, "%s: ", command);
if (option == 1)
ft_dprintf(STDERR_FILENO, "is a directory\n");
ft_dprintf(STDERR_FILENO, "Is a directory\n");
else if (option == 2)
ft_dprintf(STDERR_FILENO, "Permission denied\n");
g_sh.status = STATUS_NOT_EXECUTABLE;
Expand Down

0 comments on commit 0e4ecc4

Please sign in to comment.