* grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in

filename.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-05-12 13:41:02 +02:00
parent 38c8ee20ca
commit 57f4a70b0d
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
filename.
2012-05-12 Vladimir Serbinenko <phcoder@gmail.com> 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact

View file

@ -699,7 +699,7 @@ grub_jfs_find_file (struct grub_jfs_data *data, const char *path,
name = next; name = next;
next = grub_strchr (name, '/'); next = grub_strchr (name, '/');
if (next) while (next && *next == '/')
{ {
next[0] = '\0'; next[0] = '\0';
next++; next++;