aboutsummaryrefslogtreecommitdiff
path: root/src/path.c
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-07-17 14:09:10 +0200
committerCharles <sircharlesaze@gmail.com>2020-07-18 08:57:19 +0200
commitbd8f652de51395fb26659f7a634e55bd46917b2e (patch)
treeb8e0d746e180ebfe716815540dc553a0487c8116 /src/path.c
parent134e5ca4fe0a1051fb7946874953608894959a13 (diff)
downloadminishell-bd8f652de51395fb26659f7a634e55bd46917b2e.tar.gz
minishell-bd8f652de51395fb26659f7a634e55bd46917b2e.tar.bz2
minishell-bd8f652de51395fb26659f7a634e55bd46917b2e.zip
Fixing exit error message and overflow detection
Diffstat (limited to 'src/path.c')
-rw-r--r--src/path.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/path.c b/src/path.c
index 579fd81..1234998 100644
--- a/src/path.c
+++ b/src/path.c
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/27 15:51:01 by cacharle #+# #+# */
-/* Updated: 2020/07/15 12:11:48 by charles ### ########.fr */
+/* Updated: 2020/07/17 10:48:31 by charles ### ########.fr */
/* */
/* ************************************************************************** */
@@ -52,6 +52,8 @@ static int st_add_file(char *dirname, struct dirent *entry, void *path)
** \return The updated/created path hash table or NULL on error
*/
+// TODO check nullstring path == current directory
+// i.e ./ not needed before executable
t_path path_update(t_path path, char *path_var)
{
int i;