fix a bug in gunzip_test_header.

This commit is contained in:
okuji 1999-10-03 08:45:15 +00:00
parent ce8fc4e5a0
commit 1a8f41bc4c
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,10 @@
1999-10-03 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
* stage2/gunzip.c (gunzip_test_header): Check if CURRENT_DRIVE
is 0x20 instead of if the fs type is TFTP, because GRUB does not
mount CURRENT_DRIVE when using a block file. Reported by Pavel
Roskin.
1999-10-02 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
* stage2/builtins.c (cat_func): Do not read the whole of a file

View file

@ -271,7 +271,9 @@ gunzip_test_header (void)
unsigned char buf[10];
int is_tftp = 0;
if (grub_strcmp (fsys_table[fsys_type].name, "tftp") == 0)
/* XXX: currently, if CURRENT_DRIVE is a network device, we use only
tftp. */
if (current_drive == 0x20)
is_tftp = 1;
/* "compressed_file" is already reset to zero by this point */