* grub-core/normal/completion.c (complete_file): Handle device
containing slash. Fix based on patch by Doug Nazar.
This commit is contained in:
parent
9b5b2541a2
commit
f452b04048
2 changed files with 8 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue