2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>

* commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-03-01 20:24:34 +01:00
parent 5519963bf6
commit 5382b1e4a8
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
* commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
2010-03-01 Vladimir Serbinenko <phcoder@gmail.com> 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
* configure.ac: Update version to 1.98. * configure.ac: Update version to 1.98.

View file

@ -41,7 +41,7 @@ grub_cmd_cat (grub_command_t cmd __attribute__ ((unused)),
file = grub_gzfile_open (args[0], 1); file = grub_gzfile_open (args[0], 1);
if (! file) if (! file)
return 0; return grub_errno;
while ((size = grub_file_read (file, buf, sizeof (buf))) > 0 while ((size = grub_file_read (file, buf, sizeof (buf))) > 0
&& key != GRUB_TERM_ESC) && key != GRUB_TERM_ESC)