2008-06-26 Pavel Roskin <proski@gnu.org>

* util/biosdisk.c (read_device_map): Don't leave dead map
	entries for devices failing stat() check.
This commit is contained in:
proski 2008-06-26 16:15:52 +00:00
parent f527dbc80b
commit 6c2d8df669
2 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2008-06-26 Pavel Roskin <proski@gnu.org>
* util/biosdisk.c (read_device_map): Don't leave dead map
entries for devices failing stat() check.
* util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
core_path_dev for the core.img path on the target device.

View File

@ -532,6 +532,8 @@ read_device_map (const char *dev_map)
if (stat (p, &st) == -1)
{
free (map[drive].drive);
map[drive].drive = NULL;
grub_util_info ("Cannot stat `%s', skipping", p);
continue;
}