summaryrefslogtreecommitdiffstats
path: root/src/b_type.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-12-01 21:35:53 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-12-01 21:35:53 +0100
commit314f8f2c501322717c247fe512093a894244b702 (patch)
tree7542a204ffd719f639624f33cfa079063fc98e8c /src/b_type.c
parentcommit (diff)
download42-minishell-314f8f2c501322717c247fe512093a894244b702.tar.gz
42-minishell-314f8f2c501322717c247fe512093a894244b702.tar.bz2
42-minishell-314f8f2c501322717c247fe512093a894244b702.tar.xz
42-minishell-314f8f2c501322717c247fe512093a894244b702.tar.zst
42-minishell-314f8f2c501322717c247fe512093a894244b702.zip
Merged shotgunfixes
Diffstat (limited to 'src/b_type.c')
-rw-r--r--src/b_type.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/b_type.c b/src/b_type.c
index 5904742..789071f 100644
--- a/src/b_type.c
+++ b/src/b_type.c
@@ -47,7 +47,7 @@ static char b_absolute_path_exists(char com[])
static void b_type_get_path(char fullpath[], char com[], t_msh *msh)
{
- if (ft_ischarset("/.", com[0]) == TRUE)
+ if (ft_strchr(com, '/') != NULL)
{
if (b_absolute_path_exists(com))
{