* grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and

"..".
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-05-27 00:58:48 +02:00
parent df042ccb21
commit 47e297d4a4
2 changed files with 10 additions and 5 deletions

View file

@ -1,3 +1,8 @@
2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
"..".
2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.

View file

@ -726,11 +726,11 @@ grub_iso9660_iterate_dir (grub_fshelp_node_t dir,
}
/* . and .. */
if (!filename && dirent.namelen == 1 && (name[0] == ';' || name[0] == 0 || name[0] == 1))
{
grub_free (node);
continue;
}
if (!filename && dirent.namelen == 1 && name[0] == 0)
filename = (char *) ".";
if (!filename && dirent.namelen == 1 && name[0] == 1)
filename = (char *) "..";
/* The filename was not stored in a rock ridge entry. Read it
from the iso9660 filesystem. */