Fix listing of directory contents for root device
PATCH 1/1 Fix listing of directory contents for root device
Since revision 5010, issuing the ls command with a path not including the device name results in a NULL pointer dereference. This patch fixes the above by reverting one of the three hunks of the patch applied to create revision 5010.
Regards,
Francesco
2013-06-02 Francesco Lavra <[email protected]>
* grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths without a device name.
=== modified file 'grub-core/kern/corecmd.c'
kern/corecmd.c +1 -1
@@ -134,7 +134,7 @@ fs =grub_fs_probe (dev); path =grub_strchr (argv[0 ],')' ); -if (! *path) +if (! path) path = argv[0 ];else path++;