* fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
just one slash. That's how grub_fshelp_find_file() does it.
+2009-05-28 Pavel Roskin <proski@gnu.org>
+
+ * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
+ just one slash. That's how grub_fshelp_find_file() does it.
+
2009-05-26 Pavel Roskin <proski@gnu.org>
* genmk.rb: Avoid shadowing variable `s', rename the outer `s'
return grub_errno;
path = origpath;
- path++;
+ while (*path == '/')
+ path++;
while (path && grub_strlen (path))
{
next = grub_strchr (path, '/');
if (next)
{
- next[0] = '\0';
- next++;
+ while (*next == '/')
+ *(next++) = '\0';
}
struct grub_hfs_catalog_key key;