diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-09-14 17:22:21 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-09-14 17:22:21 +0200 |
| commit | 3693acaff9fbf3f34dc2907e95dd221d5a8bc9e4 (patch) | |
| tree | 477ab5274bb8b774288ab3018fe924c04abe3407 /include | |
| parent | 5a789d2a3f720506dc5d60f522cee52724046b91 (diff) | |
| download | minishell-3693acaff9fbf3f34dc2907e95dd221d5a8bc9e4.tar.gz minishell-3693acaff9fbf3f34dc2907e95dd221d5a8bc9e4.tar.bz2 minishell-3693acaff9fbf3f34dc2907e95dd221d5a8bc9e4.zip | |
Refactoring exec_search_path to distinguish between command not found and malloc error
Diffstat (limited to 'include')
| -rw-r--r-- | include/eval.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/eval.h b/include/eval.h index 1633464..6aaefd9 100644 --- a/include/eval.h +++ b/include/eval.h @@ -6,7 +6,7 @@ /* By: charles <charles@student.42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/01 17:05:30 by charles #+# #+# */ -/* Updated: 2020/09/13 20:56:29 by charles ### ########.fr */ +/* Updated: 2020/09/14 17:20:14 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -79,8 +79,7 @@ int redir_extract(t_tok_lst **redirs, t_env env, int fds[2]); ** exec.c */ -bool exec_is_path(char *exec_name); -bool exec_is_valid(char *exec_path); -char *exec_search_path(t_path path, char *path_var, char *exec_name); +int exec_path_check(char *exec_path); +int exec_search_path(t_path path, char *path_var, char *exec_name, char **exec_path); #endif |
