public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH] ShellPkg: Remove current working dir path ".; " from 'path' variable
@ 2016-09-21 21:30 Tapan Shah
  2016-09-22 21:21 ` Carsey, Jaben
  0 siblings, 1 reply; 2+ messages in thread
From: Tapan Shah @ 2016-09-21 21:30 UTC (permalink / raw)
  To: edk2-devel; +Cc: jaben.carsey, Tapan Shah

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>
---
 ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.c b/ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.c
index a97361c..b65676b 100644
--- a/ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.c
+++ b/ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.c
@@ -1227,10 +1227,8 @@ ShellCommandAddMapItemAndUpdatePath(
     ASSERT((NewPath == NULL && NewPathSize == 0) || (NewPath != NULL));
     if (OriginalPath != NULL) {
       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, L"\\efi\\tools\\;", 0);
     StrnCatGrow(&NewPath, &NewPathSize, Name, 0);
-- 
1.9.5.msysgit.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ShellPkg: Remove current working dir path ".; " from 'path' variable
  2016-09-21 21:30 [PATCH] ShellPkg: Remove current working dir path ".; " from 'path' variable Tapan Shah
@ 2016-09-22 21:21 ` Carsey, Jaben
  0 siblings, 0 replies; 2+ messages in thread
From: Carsey, Jaben @ 2016-09-22 21:21 UTC (permalink / raw)
  To: Tapan Shah, edk2-devel@lists.01.org; +Cc: Carsey, Jaben

Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
And commited.

> -----Original Message-----
> From: Tapan Shah [mailto:tapandshah@hpe.com]
> Sent: Wednesday, September 21, 2016 2:30 PM
> To: edk2-devel@lists.01.org
> Cc: Carsey, Jaben <jaben.carsey@intel.com>; Tapan Shah
> <tapandshah@hpe.com>
> Subject: [PATCH] ShellPkg: Remove current working dir path ".;" from 'path'
> variable
> Importance: High
> 
> 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>
> ---
>  ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.c
> b/ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.c
> index a97361c..b65676b 100644
> --- a/ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.c
> +++ b/ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.c
> @@ -1227,10 +1227,8 @@ ShellCommandAddMapItemAndUpdatePath(
>      ASSERT((NewPath == NULL && NewPathSize == 0) || (NewPath != NULL));
>      if (OriginalPath != NULL) {
>        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, L"\\efi\\tools\\;", 0);
>      StrnCatGrow(&NewPath, &NewPathSize, Name, 0);
> --
> 1.9.5.msysgit.0



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-09-22 21:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-21 21:30 [PATCH] ShellPkg: Remove current working dir path ".; " from 'path' variable Tapan Shah
2016-09-22 21:21 ` Carsey, Jaben

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox