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++;