includes hidden files

This commit is contained in:
BVK Chaitanya 2010-07-30 03:40:33 +05:30
parent 3c6a9151ad
commit 530a9ff6bc

View file

@ -277,7 +277,7 @@ match_files (const char *prefix, const char *suffix, const char *end,
char *buffer; char *buffer;
/* skip hidden files, . and .. */ /* skip hidden files, . and .. */
if (name[0] == '.') if (grub_strcmp(".", name) == 0 || grub_strcmp("..", name) == 0)
return 0; return 0;
grub_dprintf ("expand", "matching: %s in %s\n", name, dir); grub_dprintf ("expand", "matching: %s in %s\n", name, dir);