]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
includes hidden files
authorBVK Chaitanya <bvk.groups@gmail.com>
Thu, 29 Jul 2010 22:10:33 +0000 (03:40 +0530)
committerBVK Chaitanya <bvk.groups@gmail.com>
Thu, 29 Jul 2010 22:10:33 +0000 (03:40 +0530)
commands/wildcard.c

index 7f37c84eb9baf1f234ca188bf708dfb071a1aa2c..2eec9631d530fe43ca492583bd0f40ca59ecc09d 100644 (file)
@@ -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);