From d8b43d9b50c40bceaa58cbe33f8858e079826941 Mon Sep 17 00:00:00 2001 From: robertmh Date: Sat, 5 Jan 2008 11:59:34 +0000 Subject: [PATCH] 2008-01-05 Robert Millan * normal/completion.c (iterate_dir): Skip `.' and `..' directories. --- ChangeLog | 4 ++++ normal/completion.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4439f5fa1..a16d393f0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-01-05 Robert Millan + + * normal/completion.c (iterate_dir): Skip `.' and `..' directories. + 2008-01-04 Christian Franke * kern/i386/pc/init.c (grub_machine_init): Fix evaluation diff --git a/normal/completion.c b/normal/completion.c index e4b813ecf..6f573a8e9 100644 --- a/normal/completion.c +++ b/normal/completion.c @@ -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];