fix a bug in gunzip_test_header.
This commit is contained in:
parent
ce8fc4e5a0
commit
1a8f41bc4c
2 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue