* grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
direct.inode = 0.
This commit is contained in:
parent
e6da146746
commit
80662dbc5d
2 changed files with 6 additions and 1 deletions
|
@ -685,7 +685,7 @@ grub_ext2_iterate_dir (grub_fshelp_node_t dir,
|
|||
if (dirent.direntlen == 0)
|
||||
return 0;
|
||||
|
||||
if (dirent.namelen != 0)
|
||||
if (dirent.inode != 0 && dirent.namelen != 0)
|
||||
{
|
||||
char filename[dirent.namelen + 1];
|
||||
struct grub_fshelp_node *fdiro;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue