2009-11-11 Felix Zielcke <fzielcke@z-51.de>

* util/grub-probe.c (probe): Abort with an error if file can't be
	opened via GRUB facilities.
This commit is contained in:
Felix Zielcke 2009-11-11 22:20:03 +01:00
parent cdfc5ad1b3
commit 76b383bbbe
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2009-11-11 Felix Zielcke <fzielcke@z-51.de>
* util/grub-probe.c (probe): Abort with an error if file can't be
opened via GRUB facilities.
2009-11-11 Felix Zielcke <fzielcke@z-51.de>
* util/i386/pc/grub-setup.c (setup): Make core.img path relative

View File

@ -253,6 +253,8 @@ probe (const char *path, char *device_name)
free (rel_path);
grub_util_info ("reading %s via GRUB facilities", grub_path);
file = grub_file_open (grub_path);
if (! file)
grub_util_error ("can not open %s via GRUB facilities", grub_path);
filebuf_via_grub = xmalloc (file->size);
grub_file_read (file, filebuf_via_grub, file->size);