mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-23 15:49:23 +00:00
2005-10-15 Marco Gerards <mgerards@xs4all.nl>
* fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a directory can not be read.
This commit is contained in:
1 parent
4801580bfa
commit
6fa1251a91
3 files changed
+9
-2
No files matched your search
@@ -418,6 +418,8 @@ grub_xfs_iterate_dir (grub_fshelp_node_t dir,
|
||||
numread = grub_xfs_read_file (dir, 0,
|
||||
blk << dir->data->sblock.log2_bsize,
|
||||
dir->data->bsize, dirblock);
|
||||
if (numread != dir->data->bsize)
|
||||
return 0;
|
||||
|
||||
entries = (grub_be_to_cpu32 (tail->leaf_count)
|
||||
- grub_be_to_cpu32 (tail->leaf_stale));
|
||||
|
||||
Reference in new issue
Block a user