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

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

View file

@ -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.

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;