commands/ls: Output path for single file arguments given with path

Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
Glenn Washburn authored and Daniel Kiper committed 2025-03-05 21:24:48 +01:00
1 parent 6337d84afa
commit 90288fc48d
1 file changed
+2
+2
View File
@@ -108,6 +108,8 @@ print_file (const char *filename, const struct grub_dirhook_info *info,
if (! ctx->longlist) if (! ctx->longlist)
{ {
if (ctx->filename != NULL)
grub_xputs (ctx->dirname);
grub_printf ("%s%s ", filename, info->dir ? "/" : ""); grub_printf ("%s%s ", filename, info->dir ? "/" : "");
return 0; return 0;
} }