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:
parent
f0f8bbe243
commit
cbb3c83ee4
2 changed files with 9 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
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>
|
2009-05-26 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
* genmk.rb: Avoid shadowing variable `s', rename the outer `s'
|
* genmk.rb: Avoid shadowing variable `s', rename the outer `s'
|
||||||
|
|
5
fs/hfs.c
5
fs/hfs.c
|
@ -887,6 +887,7 @@ grub_hfs_find_dir (struct grub_hfs_data *data, const char *path,
|
||||||
return grub_errno;
|
return grub_errno;
|
||||||
|
|
||||||
path = origpath;
|
path = origpath;
|
||||||
|
while (*path == '/')
|
||||||
path++;
|
path++;
|
||||||
|
|
||||||
while (path && grub_strlen (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, '/');
|
next = grub_strchr (path, '/');
|
||||||
if (next)
|
if (next)
|
||||||
{
|
{
|
||||||
next[0] = '\0';
|
while (*next == '/')
|
||||||
next++;
|
*(next++) = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
struct grub_hfs_catalog_key key;
|
struct grub_hfs_catalog_key key;
|
||||||
|
|
Loading…
Reference in a new issue