[FIX] several things*

fix:
- free_tab(): useless line
- fork_exec(): comp error
change:
- search_path() works differently (doesn't modify path)
- execute_command() is changed accordingly
- get_path() now returns a non-const
This commit is contained in:
mcolonna 2024-04-25 17:25:37 +02:00
parent 7654aeb2d8
commit e3c98f2d22
3 changed files with 27 additions and 24 deletions

View file

@ -6,7 +6,7 @@
/* By: mcolonna <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/23 14:15:12 by mcolonna #+# #+# */
/* Updated: 2024/04/24 13:19:28 by mcolonna ### ########.fr */
/* Updated: 2024/04/25 17:30:22 by mcolonna ### ########.fr */
/* */
/* ************************************************************************** */
@ -70,6 +70,6 @@ void minishell_error(const char *msg);
// Get the PATH values.
// Return a list of strings ended by NULL.
const char **get_path(const char **envp);
char **get_path(const char **envp);
#endif