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:
parent
f527dbc80b
commit
6c2d8df669
2 changed files with 5 additions and 0 deletions
|
@ -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.
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue