* 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
|
@ -1,3 +1,8 @@
|
||||||
|
2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
|
||||||
|
|
||||||
|
* grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
|
||||||
|
direct.inode = 0.
|
||||||
|
|
||||||
2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
|
2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
|
* grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
|
||||||
|
|
|
@ -685,7 +685,7 @@ grub_ext2_iterate_dir (grub_fshelp_node_t dir,
|
||||||
if (dirent.direntlen == 0)
|
if (dirent.direntlen == 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (dirent.namelen != 0)
|
if (dirent.inode != 0 && dirent.namelen != 0)
|
||||||
{
|
{
|
||||||
char filename[dirent.namelen + 1];
|
char filename[dirent.namelen + 1];
|
||||||
struct grub_fshelp_node *fdiro;
|
struct grub_fshelp_node *fdiro;
|
||||||
|
|
Loading…
Reference in a new issue