From 57f4a70b0dc754e1c2fb3d7e7d62e65d42c43d41 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Sat, 12 May 2012 13:41:02 +0200 Subject: [PATCH] * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in filename. --- ChangeLog | 5 +++++ grub-core/fs/jfs.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d303b1084..14feffd3e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-05-12 Vladimir Serbinenko + + * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in + filename. + 2012-05-12 Vladimir Serbinenko * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact diff --git a/grub-core/fs/jfs.c b/grub-core/fs/jfs.c index d3de33901..57ffab8fe 100644 --- a/grub-core/fs/jfs.c +++ b/grub-core/fs/jfs.c @@ -699,7 +699,7 @@ grub_jfs_find_file (struct grub_jfs_data *data, const char *path, name = next; next = grub_strchr (name, '/'); - if (next) + while (next && *next == '/') { next[0] = '\0'; next++;