From 3693acaff9fbf3f34dc2907e95dd221d5a8bc9e4 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Mon, 14 Sep 2020 17:22:21 +0200 Subject: Refactoring exec_search_path to distinguish between command not found and malloc error --- include/eval.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'include') 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 +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* 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 -- cgit