From 22ff0337dc23239c32cc738bb6f576b8a0b66f8b Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Tue, 6 Oct 2020 17:40:58 +0200 Subject: Fixing macos error messages and SHLVL --- src/path.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/path.c') 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 +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* 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); -- cgit