mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +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
@@ -1,3 +1,8 @@
|
||||
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.
|
||||
|
||||
2008-01-21 Robert Millan <rmh@aybabtu.com>
|
||||
|
||||
* kern/mm.c (grub_mm_init_region): Improve debug message.
|
||||
|
||||
@@ -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