ShellPkg: Remove current working dir path ".;" from 'path' variable

As per ECR 1349, latest UEFI Shell 2.2 specification has removed current working directory
path ".;" from a default 'path' environment variable as current working directory always
search first in system.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Tapan Shah <tapandshah@hpe.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
This commit is contained in:
Tapan Shah 2016-09-21 14:30:15 -07:00 committed by Jaben Carsey
parent 583448b441
commit 85b88deb18
1 changed files with 1 additions and 3 deletions

View File

@ -1227,10 +1227,8 @@ ShellCommandAddMapItemAndUpdatePath(
ASSERT((NewPath == NULL && NewPathSize == 0) || (NewPath != NULL)); ASSERT((NewPath == NULL && NewPathSize == 0) || (NewPath != NULL));
if (OriginalPath != NULL) { if (OriginalPath != NULL) {
StrnCatGrow(&NewPath, &NewPathSize, OriginalPath, 0); StrnCatGrow(&NewPath, &NewPathSize, OriginalPath, 0);
} else {
StrnCatGrow(&NewPath, &NewPathSize, L".\\", 0);
}
StrnCatGrow(&NewPath, &NewPathSize, L";", 0); StrnCatGrow(&NewPath, &NewPathSize, L";", 0);
}
StrnCatGrow(&NewPath, &NewPathSize, Name, 0); StrnCatGrow(&NewPath, &NewPathSize, Name, 0);
StrnCatGrow(&NewPath, &NewPathSize, L"\\efi\\tools\\;", 0); StrnCatGrow(&NewPath, &NewPathSize, L"\\efi\\tools\\;", 0);
StrnCatGrow(&NewPath, &NewPathSize, Name, 0); StrnCatGrow(&NewPath, &NewPathSize, Name, 0);