diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-10-06 17:40:58 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-10-06 17:40:58 +0200 |
| commit | 22ff0337dc23239c32cc738bb6f576b8a0b66f8b (patch) | |
| tree | 215d56c87db9a21394b41251ee5790a88ebb0754 /src/path.c | |
| parent | 89bd998bcf0839a83daf16ab9b1e8ae568a8a9f2 (diff) | |
| download | minishell-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |
