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
|
@ -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…
Add table
Add a link
Reference in a new issue