]> Git Repo - linux.git/commitdiff
perf tools: Fix lazy wildcard matching
authorMasami Hiramatsu <[email protected]>
Fri, 17 Dec 2010 13:12:00 +0000 (22:12 +0900)
committerArnaldo Carvalho de Melo <[email protected]>
Tue, 21 Dec 2010 21:15:42 +0000 (19:15 -0200)
Fix lazy wildcard matching to ignore space after wild card.

Cc: [email protected]
Cc: Frederic Weisbecker <[email protected]>
Cc: Hitoshi Mitake <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Srikar Dronamraju <[email protected]>
Cc: Steven Rostedt <[email protected]>
LKML-Reference: <20101217131200[email protected]>
Signed-off-by: Masami Hiramatsu <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/util/string.c

index 0409fc7c0058809f01da646c4d5ee98c21f69b1d..8fc0bd3a3a4a6bd3f816a6619cc1de0793a98caa 100644 (file)
@@ -259,7 +259,7 @@ static bool __match_glob(const char *str, const char *pat, bool ignore_space)
                if (!*pat)      /* Tail wild card matches all */
                        return true;
                while (*str)
-                       if (strglobmatch(str++, pat))
+                       if (__match_glob(str++, pat, ignore_space))
                                return true;
        }
        return !*str && !*pat;
This page took 0.069272 seconds and 4 git commands to generate.