From b8578da640f54e2c685320bd3e058043b2518eab Mon Sep 17 00:00:00 2001 From: Francesco Lavra Date: Fri, 7 Jun 2013 16:28:13 +0200 Subject: [PATCH] * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths without a device name. --- ChangeLog | 5 +++++ grub-core/kern/corecmd.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 28d3e41c9..15fd56227 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-06-02 Francesco Lavra + + * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths + without a device name. + 2013-06-07 Vladimir Serbinenko Remove enable_executable_check as it's not needed anymore. diff --git a/grub-core/kern/corecmd.c b/grub-core/kern/corecmd.c index e1bb4832e..bee216649 100644 --- a/grub-core/kern/corecmd.c +++ b/grub-core/kern/corecmd.c @@ -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++;