* fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
	there are no more items.
This commit is contained in:
bean committed 2008-01-22 12:44:38 +00:00
1 parent bc2d8ac639
commit 44023a2816
2 files changed
+7 -2

No files matched your search

+5
View File
@@ -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> 2008-01-21 Robert Millan <rmh@aybabtu.com>
* kern/mm.c (grub_mm_init_region): Improve debug message. * kern/mm.c (grub_mm_init_region): Improve debug message.
+2 -2
View File
@@ -101,7 +101,7 @@ grub_cpio_find_file (struct grub_cpio_data *data, char **name,
if (data->size == 0) if (data->size == 0)
{ {
*ofs = 0; *ofs = 0;
return GRUB_ERR_NONE; return GRUB_ERR_FILE_NOT_FOUND;
} }
if (hd.namesize & 1) if (hd.namesize & 1)
@@ -133,7 +133,7 @@ grub_cpio_find_file (struct grub_cpio_data *data, char **name,
if (!hd.name[0]) if (!hd.name[0])
{ {
*ofs = 0; *ofs = 0;
return GRUB_ERR_NONE; return GRUB_ERR_FILE_NOT_FOUND;
} }
if (grub_memcmp (hd.magic, MAGIC_USTAR, sizeof (MAGIC_USTAR) - 1)) if (grub_memcmp (hd.magic, MAGIC_USTAR, sizeof (MAGIC_USTAR) - 1))