]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 12 Feb 2012 18:00:50 +0000 (19:00 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 12 Feb 2012 18:00:50 +0000 (19:00 +0100)
device name.

ChangeLog
grub-core/kern/corecmd.c

index 69ac1c095eecaca4f25090c05f1929732b6849ce..160f4431c974a0d52e12c33d4f908371727b4eb5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index 136c5a3650ba0729c2ab5f93c3174b01e5b67770..0ec6bdd280f8ee1d4a927277d06463aca529ae9d 100644 (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;