diff options
author | Tapan Shah <tapandshah@hp.com> | 2015-04-07 20:39:22 +0000 |
---|---|---|
committer | jcarsey <jcarsey@Edk2> | 2015-04-07 20:39:22 +0000 |
commit | bf6bbc212d77736c9f81d6877701d4cf86030349 (patch) | |
tree | b3d017989cb50afd5937ee61f389afcca114b9ba /ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.h | |
parent | bbf57d4fb9047c01d1e27f8a05e0c41b94fbc4b7 (diff) | |
download | edk2-bf6bbc212d77736c9f81d6877701d4cf86030349.tar.gz |
ShellPkg: fix mv and cp command related issues
1.mv deletes file/directory when trying to move it to non-existing file system.
2.mv causes RSOD in system when trying to move same file at the same location.
3.Refactor mv and cp command with command name passed-in.
remove redundant move status error message when file failed to move across file system.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Tapan Shah <tapandshah@hp.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17129 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.h')
-rw-r--r-- | ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.h b/ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.h index 05582da3ca..634515e493 100644 --- a/ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.h +++ b/ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.h @@ -338,6 +338,7 @@ ShellCommandRunVol ( @param[in] Dest pointer to destination file name
@param[out] Resp pointer to response from question. Pass back on looped calling
@param[in] SilentMode whether to run in quiet mode or not
+ @param[in] CmdName Source command name requesting single file copy
@retval SHELL_SUCCESS The source file was copied to the destination
**/
@@ -347,7 +348,8 @@ CopySingleFile( IN CONST CHAR16 *Source,
IN CONST CHAR16 *Dest,
OUT VOID **Resp,
- IN BOOLEAN SilentMode
+ IN BOOLEAN SilentMode,
+ IN CONST CHAR16 *CmdName
);
/**
|