From: Ruiyu Ni Date: Mon, 8 Aug 2016 10:21:32 +0000 (+0800) Subject: ShellPkg/ls: Display the correct directory path X-Git-Tag: edk2-stable201903~6083 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=5aeafb3a254e7cd9e1fb69a0d391388a51c6e210 ShellPkg/ls: Display the correct directory path Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Jaben Carsey Reviewed-by: Tapan Shah --- diff --git a/ShellPkg/Library/UefiShellLevel2CommandsLib/Ls.c b/ShellPkg/Library/UefiShellLevel2CommandsLib/Ls.c index 6d3cc95f4b..0b8019516f 100644 --- a/ShellPkg/Library/UefiShellLevel2CommandsLib/Ls.c +++ b/ShellPkg/Library/UefiShellLevel2CommandsLib/Ls.c @@ -442,6 +442,7 @@ PrintLsOutput( } if (!Sfo && !HeaderPrinted) { + PathRemoveLastItem (CorrectedPath); PrintNonSfoHeader(CorrectedPath); } PrintFileInformation(Sfo, Node, &FileCount, &FileSize, &DirCount);