* grub-core/io/gzio.c (grub_gzio_open): Always return original io if

file type was not recognized correctly (not gzip or corrupted).
This commit is contained in:
Szymon Janc 2011-08-20 11:48:46 +02:00
parent f87abff538
commit a5219af189
2 changed files with 7 additions and 5 deletions

View file

@ -1179,12 +1179,9 @@ grub_gzio_open (grub_file_t io)
grub_free (gzio);
grub_free (file);
grub_file_seek (io, 0);
grub_errno = GRUB_ERR_NONE;
if (grub_errno == GRUB_ERR_BAD_FILE_TYPE)
{
grub_errno = GRUB_ERR_NONE;
return io;
}
return io;
}
return file;