]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
authorFrancesco Lavra <francescolavra.fl@gmail.com>
Fri, 7 Jun 2013 14:28:13 +0000 (16:28 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 7 Jun 2013 14:28:13 +0000 (16:28 +0200)
without a device name.

ChangeLog
grub-core/kern/corecmd.c

index 28d3e41c9716cf7af47414f00b0974c66c421457..15fd56227bc8c0265f859ac2a9f3c168e0403e99 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-06-02  Francesco Lavra  <francescolavra.fl@gmail.com>
+
+       * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
+       without a device name.
+
 2013-06-07  Vladimir Serbinenko  <phcoder@gmail.com>
 
        Remove enable_executable_check as it's not needed anymore.
index e1bb4832e1e182fba2832526836de171499fcba2..bee21664964785dffe1e875b48078ebf2afe0f45 100644 (file)
@@ -134,7 +134,7 @@ grub_core_cmd_ls (struct grub_command *cmd __attribute__ ((unused)),
 
       fs = grub_fs_probe (dev);
       path = grub_strchr (argv[0], ')');
-      if (! *path)
+      if (! path)
        path = argv[0];
       else
        path++;