* grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
device name.
This commit is contained in:
parent
e7b02f9ec0
commit
e4b7f404d8
2 changed files with 7 additions and 0 deletions
|
@ -133,6 +133,8 @@ grub_core_cmd_ls (struct grub_command *cmd __attribute__ ((unused)),
|
|||
char *path;
|
||||
|
||||
device_name = grub_file_get_device_name (argv[0]);
|
||||
if (grub_errno)
|
||||
goto fail;
|
||||
dev = grub_device_open (device_name);
|
||||
if (! dev)
|
||||
goto fail;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue