summaryrefslogtreecommitdiffstats
path: root/src/u_path.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-10-05 15:18:41 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-10-05 15:18:41 +0200
commit870e8a742536c08d4102630d0e4ffa0f86e639f0 (patch)
treeb1ad22f003a7e833fc13c62f0be605c258a3d55e /src/u_path.c
parentTODO update (diff)
download42-minishell-870e8a742536c08d4102630d0e4ffa0f86e639f0.tar.gz
42-minishell-870e8a742536c08d4102630d0e4ffa0f86e639f0.tar.bz2
42-minishell-870e8a742536c08d4102630d0e4ffa0f86e639f0.tar.xz
42-minishell-870e8a742536c08d4102630d0e4ffa0f86e639f0.tar.zst
42-minishell-870e8a742536c08d4102630d0e4ffa0f86e639f0.zip
Pipes rework incomming
Diffstat (limited to 'src/u_path.c')
-rw-r--r--src/u_path.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/u_path.c b/src/u_path.c
index 1ca1b2d..d851d8b 100644
--- a/src/u_path.c
+++ b/src/u_path.c
@@ -70,7 +70,7 @@ uint8_t u_search_in_path(char fullpath[],
int8_t ret;
if (u_get_var_value(tmp, "$PATH", ARG_MAX, msh) != 0)
- return (1);
+ return (2);
s.dstsize = dstsize;
s.tok_path = ft_strtok(tmp, ":");
while (s.tok_path != NULL)
@@ -84,5 +84,5 @@ uint8_t u_search_in_path(char fullpath[],
}
s.tok_path = ft_strtok(NULL, ":");
}
- return (1);
+ return (2);
}