diff options
| author | Dominik Kaiser | 2024-05-07 15:18:01 +0200 |
|---|---|---|
| committer | Dominik Kaiser | 2024-05-07 15:18:01 +0200 |
| commit | 7af46f10e23296baa72b70e5fbc72eb35e2a9b01 (patch) | |
| tree | 14d0f86716a7bd32b82c18985af4649fc46611ef /src/env_utils.c | |
| parent | bf5ee9f9aba9f8c5ec34f103e8848daae76f3c15 (diff) | |
| download | pipex-7af46f10e23296baa72b70e5fbc72eb35e2a9b01.tar.gz pipex-7af46f10e23296baa72b70e5fbc72eb35e2a9b01.zip | |
Add changes from input_handling
This is not how it should be done, but I just need to finish this quickly.
Diffstat (limited to 'src/env_utils.c')
| -rw-r--r-- | src/env_utils.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/env_utils.c b/src/env_utils.c index b352d72..4e02032 100644 --- a/src/env_utils.c +++ b/src/env_utils.c @@ -6,7 +6,7 @@ /* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/05/02 16:19:31 by dkaiser #+# #+# */ -/* Updated: 2024/05/07 15:13:51 by dkaiser ### ########.fr */ +/* Updated: 2024/05/07 15:16:32 by dkaiser ### ########.fr */ /* */ /* ************************************************************************** */ @@ -62,8 +62,7 @@ char *get_cmd_path(char *cmd, char **path, char *pwd) char *cur_dir; if (cmd[0] == '/') - return (cmd); // TODO: Maybe use duplicate instead, - so there will be no problem on free() + return (cmd); // TODO: Maybe use duplicate instead, so there will be no problem on free() else if (strchr(cmd, '/')) { cur_dir = ft_strjoin(pwd, "/"); |
