(wildcard_expand): Don't stop on nonregexp parts after regexp ones since
it truncates the output.
Reported by: Ximin Luo.
+2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
+ (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
+ it truncates the output.
+ Reported by: Ximin Luo.
+
2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
if (regexec (regexp, name, 0, 0, 0))
return 0;
+ grub_dprintf ("expand", "matched\n");
+
buffer = grub_xasprintf ("%s%s", dir, name);
if (! buffer)
return 1;
while (*start)
{
split_path (start, &noregexop, ®exop);
- if (noregexop >= regexop) /* no more wildcards */
- break;
if (make_regex (noregexop, regexop, ®exp))
goto fail;