]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg/ls: Display the correct directory path
authorRuiyu Ni <ruiyu.ni@intel.com>
Mon, 8 Aug 2016 10:21:32 +0000 (18:21 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Wed, 10 Aug 2016 02:17:17 +0000 (10:17 +0800)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Tapan Shah <tapandshah@hpe.com>
ShellPkg/Library/UefiShellLevel2CommandsLib/Ls.c

index 6d3cc95f4b9bfefe5a5305b3faedd61cad56468c..0b8019516f83a53abf44e00d1f483735274fea14 100644 (file)
@@ -442,6 +442,7 @@ PrintLsOutput(
       }\r
 \r
       if (!Sfo && !HeaderPrinted) {\r
+        PathRemoveLastItem (CorrectedPath);\r
         PrintNonSfoHeader(CorrectedPath);\r
       }\r
       PrintFileInformation(Sfo, Node, &FileCount, &FileSize, &DirCount);\r