* 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
|
@ -1,3 +1,8 @@
|
|||
2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
|
||||
device name.
|
||||
|
||||
2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
|
||||
|
|
|
@ -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…
Reference in a new issue