From 80cbac03a21871216c4d0b98dd5349cebbddcf79 Mon Sep 17 00:00:00 2001 From: wescande Date: Mon, 6 Feb 2017 16:04:03 +0100 Subject: [PATCH] =?UTF-8?q?rectif=20du=20glob=20pour=20ne=20pas=20chercher?= =?UTF-8?q?=20les=20fichiers/dossiers=20cach=C3=A9s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 42sh/src/glob/dir_glob.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/42sh/src/glob/dir_glob.c b/42sh/src/glob/dir_glob.c index 3ed4a660..6ae32efa 100644 --- a/42sh/src/glob/dir_glob.c +++ b/42sh/src/glob/dir_glob.c @@ -6,7 +6,7 @@ /* By: wescande +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/01/30 12:07:16 by wescande #+# #+# */ -/* Updated: 2017/02/01 19:49:44 by wescande ### ########.fr */ +/* Updated: 2017/02/06 16:02:48 by wescande ### ########.fr */ /* */ /* ************************************************************************** */ @@ -27,7 +27,7 @@ static int dir_list_content(t_glob *gl, char **str, const char *pat, char *path_tmp; ret = 0; - if (ft_strcmp(str[1], ".") && ft_strcmp(str[1], "..")) + if (str[1][0] != '.') { if (*str[0] == '/' && !*(str[0] + 1)) path_tmp = ft_strjoin(str[0], str[1]);