* grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths

without a device name.
This commit is contained in:
Francesco Lavra 2013-06-07 16:28:13 +02:00 committed by Vladimir 'phcoder' Serbinenko
parent 69544d1e43
commit b8578da640
2 changed files with 6 additions and 1 deletions

View file

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

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