2008-01-05 Robert Millan <rmh@aybabtu.com>

* normal/completion.c (iterate_dir): Skip `.' and `..' directories.
This commit is contained in:
robertmh 2008-01-05 11:59:34 +00:00
parent 2bff2de347
commit d8b43d9b50
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2008-01-05 Robert Millan <rmh@aybabtu.com>
* normal/completion.c (iterate_dir): Skip `.' and `..' directories.
2008-01-04 Christian Franke <franke@computer.org>
* kern/i386/pc/init.c (grub_machine_init): Fix evaluation

View file

@ -138,7 +138,7 @@ iterate_dir (const char *filename, int dir)
if (add_completion (filename, prefix, GRUB_COMPLETION_TYPE_FILE))
return 1;
}
else
else if (grub_strcmp (filename, ".") && grub_strcmp (filename, ".."))
{
char fname[grub_strlen (filename) + 2];