kernel: print and reset grub_errno after each embedded config line
Otherwise it causes subsequent file open to fail, because grub_file_open misinterprets set grub_errno for grub_file_get_device_name failure. Closes: 46540
This commit is contained in:
parent
7136b545c1
commit
609c049dcc
1 changed files with 1 additions and 0 deletions
|
@ -268,6 +268,7 @@ grub_parser_execute (char *source)
|
||||||
grub_parser_execute_getline (&line, 0, &source);
|
grub_parser_execute_getline (&line, 0, &source);
|
||||||
grub_rescue_parse_line (line, grub_parser_execute_getline, &source);
|
grub_rescue_parse_line (line, grub_parser_execute_getline, &source);
|
||||||
grub_free (line);
|
grub_free (line);
|
||||||
|
grub_print_error ();
|
||||||
}
|
}
|
||||||
|
|
||||||
return grub_errno;
|
return grub_errno;
|
||||||
|
|
Loading…
Reference in a new issue