From e24783c0c75a35fe03cc944f4d08ed44e982a913 Mon Sep 17 00:00:00 2001 From: gwojda Date: Tue, 21 Mar 2017 14:53:53 +0100 Subject: [PATCH] =?UTF-8?q?jai=20trouv=C3=A9=20valgrind=20:D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 42sh/src/completion/c_find_abspath.c | 2 +- 42sh/src/completion/c_find_files.c | 6 +++--- 42sh/src/completion/c_parser.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/42sh/src/completion/c_find_abspath.c b/42sh/src/completion/c_find_abspath.c index 247beed9..0148eb76 100644 --- a/42sh/src/completion/c_find_abspath.c +++ b/42sh/src/completion/c_find_abspath.c @@ -6,7 +6,7 @@ /* By: gwojda +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/03/09 16:54:59 by gwojda #+# #+# */ -/* Updated: 2017/03/21 14:24:25 by gwojda ### ########.fr */ +/* Updated: 2017/03/21 14:47:18 by gwojda ### ########.fr */ /* */ /* ************************************************************************** */ diff --git a/42sh/src/completion/c_find_files.c b/42sh/src/completion/c_find_files.c index c326ded1..ce521d43 100644 --- a/42sh/src/completion/c_find_files.c +++ b/42sh/src/completion/c_find_files.c @@ -6,7 +6,7 @@ /* By: alao +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/01/09 13:31:21 by alao #+# #+# */ -/* Updated: 2017/03/21 14:37:27 by gwojda ### ########.fr */ +/* Updated: 2017/03/21 14:53:21 by gwojda ### ########.fr */ /* */ /* ************************************************************************** */ @@ -31,12 +31,12 @@ int c_exclusion_folder(t_comp *c) if ((rep = opendir(tmp)) && (!closedir(rep))) { tmp ? ft_memdel((void *)&tmp) : (0); - if (c->rcmd[ft_strlen(c->rcmd) - 1] == '/') + if (c->rcmd[ft_strlen(c->rcmd) - 1] == '/' + || c->rcmd[ft_strlen(c->rcmd) - 1] == '.') { c_clear(data_singleton()); return (0); } - DG("c->match = \"%s\"", c->match); tmp2 = ft_strjoin(c->match, "/"); c_updater(c, tmp2); tmp2 ? ft_memdel((void *)&tmp2) : (0); diff --git a/42sh/src/completion/c_parser.c b/42sh/src/completion/c_parser.c index 20c8912d..c59e1ad4 100644 --- a/42sh/src/completion/c_parser.c +++ b/42sh/src/completion/c_parser.c @@ -6,7 +6,7 @@ /* By: alao +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/01/09 13:52:07 by alao #+# #+# */ -/* Updated: 2017/03/16 10:29:15 by gwojda ### ########.fr */ +/* Updated: 2017/03/21 14:46:39 by gwojda ### ########.fr */ /* */ /* ************************************************************************** */