mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-28 01:59:49 +00:00
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:
1 parent
f527dbc80b
commit
6c2d8df669
2 files changed
+5
No files matched your search
@@ -1,5 +1,8 @@
|
|||||||
2008-06-26 Pavel Roskin <proski@gnu.org>
|
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
|
* 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.
|
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)
|
if (stat (p, &st) == -1)
|
||||||
{
|
{
|
||||||
|
free (map[drive].drive);
|
||||||
|
map[drive].drive = NULL;
|
||||||
grub_util_info ("Cannot stat `%s', skipping", p);
|
grub_util_info ("Cannot stat `%s', skipping", p);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user