2008-09-25 Felix Zielcke fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one. Index: fs/jfs.c =================================================================== --- fs/jfs.c (revision 1877) +++ fs/jfs.c (working copy) @@ -614,8 +614,8 @@ grub_jfs_find_file (struct grub_jfs_data if (grub_jfs_read_inode (data, GRUB_JFS_AGGR_INODE, &data->currinode)) return grub_errno; - /* Skip the first slash. */ - if (name[0] == '/') + /* Skip the first slashes. */ + while (*name == '/') { name++; if (!*name) @@ -626,10 +626,12 @@ grub_jfs_find_file (struct grub_jfs_data next = grub_strchr (name, '/'); if (next) { - next[0] = '\0'; - next++; + while (*next == '/') + { + next[0] = '\0'; + next++; + } } - diro = grub_jfs_opendir (data, &data->currinode); if (!diro) return grub_errno;