summaryrefslogtreecommitdiffstats
path: root/ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.h
diff options
context:
space:
mode:
authorTapan Shah <tapandshah@hp.com>2015-04-07 20:39:22 +0000
committerjcarsey <jcarsey@Edk2>2015-04-07 20:39:22 +0000
commitbf6bbc212d77736c9f81d6877701d4cf86030349 (patch)
treeb3d017989cb50afd5937ee61f389afcca114b9ba /ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.h
parentbbf57d4fb9047c01d1e27f8a05e0c41b94fbc4b7 (diff)
downloadedk2-bf6bbc212d77736c9f81d6877701d4cf86030349.tar.gz
edk2-bf6bbc212d77736c9f81d6877701d4cf86030349.tar.bz2
edk2-bf6bbc212d77736c9f81d6877701d4cf86030349.zip
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.h4
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
);
/**