* grub-core/normal/completion.c (complete_file): Handle device

containing slash.
	Fix based on patch by Doug Nazar.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-09-13 14:26:55 +02:00
parent 9b5b2541a2
commit f452b04048
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/normal/completion.c (complete_file): Handle device
containing slash.
Fix based on patch by Doug Nazar.
2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
grub-mknetdir script.

View file

@ -247,7 +247,8 @@ complete_file (void)
goto fail;
}
dir = grub_strchr (current_word, '/');
dir = grub_strchr (current_word + (device ? 2 + grub_strlen (device) : 0),
'/');
last_dir = grub_strrchr (current_word, '/');
if (dir)
{