mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-25 16:49:23 +00:00
2008-01-22 Bean <bean123ch@gmail.com>
* fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when there are no more items.
This commit is contained in:
1 parent
bc2d8ac639
commit
44023a2816
2 files changed
+7
-2
No files matched your search
@@ -101,7 +101,7 @@ grub_cpio_find_file (struct grub_cpio_data *data, char **name,
|
||||
if (data->size == 0)
|
||||
{
|
||||
*ofs = 0;
|
||||
return GRUB_ERR_NONE;
|
||||
return GRUB_ERR_FILE_NOT_FOUND;
|
||||
}
|
||||
|
||||
if (hd.namesize & 1)
|
||||
@@ -133,7 +133,7 @@ grub_cpio_find_file (struct grub_cpio_data *data, char **name,
|
||||
if (!hd.name[0])
|
||||
{
|
||||
*ofs = 0;
|
||||
return GRUB_ERR_NONE;
|
||||
return GRUB_ERR_FILE_NOT_FOUND;
|
||||
}
|
||||
|
||||
if (grub_memcmp (hd.magic, MAGIC_USTAR, sizeof (MAGIC_USTAR) - 1))
|
||||
|
||||
Reference in new issue
Block a user