]> git.proxmox.com Git - mirror_edk2.git/commit - ShellPkg/Library/UefiShellLevel2CommandsLib/Cd.c
ShellPkg:?cd \? command fails to go back to the root directory of a file system
authorTapan Shah <tapandshah@hpe.com>
Fri, 7 Oct 2016 20:59:34 +0000 (13:59 -0700)
committerJaben Carsey <jaben.carsey@intel.com>
Wed, 12 Oct 2016 17:24:35 +0000 (10:24 -0700)
commita7ea752e59bbbf69c6d8a72ee6a8b7a0f77cca7c
treeaf60eb7b1e7706bc108a8c6096248e260feb22b6
parenta12b214ef9e002b3b7a7f7845bb025a2a8597dcc
ShellPkg:?cd \? command fails to go back to the root directory of a file system

Allows cd command to go back to the root directory when 'cd \' executed in system.

This change prevents last PathRemoveLastItem() call which truncates '\' from 'fs0:\'
in desired root path which is required to set CWD to the root directory.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Tapan Shah <tapandshah@hpe.com>
Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com>
ShellPkg/Library/UefiShellLevel2CommandsLib/Cd.c