aboutsummaryrefslogtreecommitdiff
path: root/src/path.c
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-10-06 17:40:58 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-10-06 17:40:58 +0200
commit22ff0337dc23239c32cc738bb6f576b8a0b66f8b (patch)
tree215d56c87db9a21394b41251ee5790a88ebb0754 /src/path.c
parent89bd998bcf0839a83daf16ab9b1e8ae568a8a9f2 (diff)
downloadminishell-22ff0337dc23239c32cc738bb6f576b8a0b66f8b.tar.gz
minishell-22ff0337dc23239c32cc738bb6f576b8a0b66f8b.tar.bz2
minishell-22ff0337dc23239c32cc738bb6f576b8a0b66f8b.zip
Fixing macos error messages and SHLVL
Diffstat (limited to 'src/path.c')
-rw-r--r--src/path.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/path.c b/src/path.c
index f583d00..c8cf2d2 100644
--- a/src/path.c
+++ b/src/path.c
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/27 15:51:01 by cacharle #+# #+# */
-/* Updated: 2020/09/16 19:28:34 by charles ### ########.fr */
+/* Updated: 2020/10/06 17:26:05 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -24,7 +24,7 @@ static int st_path_check(char exec_path[PATH_MAX + 1], bool in_path)
if (stat(exec_path, &statbuf) == -1)
return (errorf_ret(127, "%s: %s\n", exec_path, strerror(errno)));
if (S_ISDIR(statbuf.st_mode))
- return (errorf_ret(126, "%s: Is a directory\n", exec_path));
+ return (errorf_ret(126, "%s: is a directory\n", exec_path));
if (!in_path && !(statbuf.st_mode & 0444))
return (errorf_ret(126, "%s: %s\n", exec_path, strerror(EACCES)));
return (0);