* grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing

device name.
This commit is contained in:
Vladimir 'phcoder' Serbinenko committed 2012-02-12 19:00:50 +01:00
1 parent e7b02f9ec0
commit e4b7f404d8
2 files changed
+7

No files matched your search

+2
View File
@@ -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;