* grub-core/fs/minix.c (grub_minix_find_file): Likewise.
+2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
+ * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
+
2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
* util/grub-menulst2cfg.c (main): Check return value of fwrite.
* util/grub-mklayout.c (write_file): Likewise. New argument fname.
- Allusers updated.
+ All users updated.
2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
grub_strcpy (fpath, path);
/* Skip the first slash. */
- if (name[0] == '/')
- {
- name++;
- if (!*name)
- return 0;
- }
+ while (*name == '/')
+ name++;
+ if (!*name)
+ return 0;
/* Extract the actual part from the pathname. */
next = grub_strchr (name, '/');
{
next[0] = '\0';
next++;
+ while (*next == '/')
+ next++;
}
do
{
next[0] = '\0';
next++;
+ while (*next == '/')
+ next++;
}
if ((GRUB_MINIX_INODE_MODE (data)
grub_strcpy (fpath, path);
/* Skip the first slash. */
- if (name[0] == '/')
- {
- name++;
- if (!*name)
- return 0;
- }
+ while (*name == '/')
+ name++;
+ if (!*name)
+ return 0;
/* Extract the actual part from the pathname. */
next = grub_strchr (name, '/');
{
next[0] = '\0';
next++;
+ while (*next == '/')
+ next++;
}
do
{
next[0] = '\0';
next++;
+ while (*next == '/')
+ next++;
}
if ((INODE_MODE(data) & GRUB_UFS_ATTR_TYPE) != GRUB_UFS_ATTR_DIR)