diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-10-15 09:42:53 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-10-15 09:42:53 +0200 |
| commit | 753630fe796eb53976696972ee7e20aebd8b1365 (patch) | |
| tree | 7a3d5915cf5d73abdec840a09e1c5627d5de0feb /src/path.c | |
| parent | 1352a826b11148a23633504c9d3c246aeaacb1f7 (diff) | |
| download | minishell-753630fe796eb53976696972ee7e20aebd8b1365.tar.gz minishell-753630fe796eb53976696972ee7e20aebd8b1365.tar.bz2 minishell-753630fe796eb53976696972ee7e20aebd8b1365.zip | |
Fixing case insensitive executable path, Removing prompt basename
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/10/09 13:36:26 by cacharle ### ########.fr */ +/* Updated: 2020/10/15 09:35:31 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -40,7 +40,7 @@ static bool st_dir_search( return (false); while ((entry = readdir(dir)) != NULL) { - if (ft_strcmp(entry->d_name, exec_name) == 0) + if (ft_strcasecmp(entry->d_name, exec_name) == 0) { ft_strcpy(exec_path, dirname); ft_strcat(exec_path, "/"); |
