mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
perf tools: Fix lazy wildcard matching
Fix lazy wildcard matching to ignore space after wild card. Cc: 2nddept-manager@sdl.hitachi.co.jp Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp> Cc: Ingo Molnar <mingo@elte.hu> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com> Cc: Steven Rostedt <rostedt@goodmis.org> LKML-Reference: <20101217131200.24123.8202.stgit@ltc236.sdl.hitachi.co.jp> Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
bbde588bfa
commit
ea187cfbb9
1 changed files with 1 additions and 1 deletions
|
@ -259,7 +259,7 @@ static bool __match_glob(const char *str, const char *pat, bool ignore_space)
|
||||||
if (!*pat) /* Tail wild card matches all */
|
if (!*pat) /* Tail wild card matches all */
|
||||||
return true;
|
return true;
|
||||||
while (*str)
|
while (*str)
|
||||||
if (strglobmatch(str++, pat))
|
if (__match_glob(str++, pat, ignore_space))
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return !*str && !*pat;
|
return !*str && !*pat;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue