From: BVK Chaitanya Date: Thu, 29 Jul 2010 22:10:33 +0000 (+0530) Subject: includes hidden files X-Git-Tag: 1.99~593^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=530a9ff6bc825e9a616ae4de157cdac170988662;p=thirdparty%2Fgrub.git includes hidden files --- diff --git a/commands/wildcard.c b/commands/wildcard.c index 7f37c84eb..2eec9631d 100644 --- a/commands/wildcard.c +++ b/commands/wildcard.c @@ -277,7 +277,7 @@ match_files (const char *prefix, const char *suffix, const char *end, char *buffer; /* skip hidden files, . and .. */ - if (name[0] == '.') + if (grub_strcmp(".", name) == 0 || grub_strcmp("..", name) == 0) return 0; grub_dprintf ("expand", "matching: %s in %s\n", name, dir);