Here's a patch to handle things like //boot/// for JFS which doestn't do it currently but Linux does it.
This was already brought up 2004 but I wonder why this isn't included http://lists.gnu.org/archive/html/grub-devel/2004-08/msg00043.html Probable this can be right now commited but as always I just want to be on the safe side.
2008-09-25 Felix Zielcke <[EMAIL PROTECTED]> 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;
_______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel