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.
This commit is contained in:
fzielcke committed 2009-06-03 13:49:27 +00:00
1 parent f0f8bbe243
commit cbb3c83ee4
2 files changed
+9 -3

No files matched your search

+4 -3
View File
@@ -887,7 +887,8 @@ grub_hfs_find_dir (struct grub_hfs_data *data, const char *path,
return grub_errno;
path = origpath;
path++;
while (*path == '/')
path++;
while (path && grub_strlen (path))
{
@@ -901,8 +902,8 @@ grub_hfs_find_dir (struct grub_hfs_data *data, const char *path,
next = grub_strchr (path, '/');
if (next)
{
next[0] = '\0';
next++;
while (*next == '/')
*(next++) = '\0';
}
struct grub_hfs_catalog_key key;