]> git.proxmox.com Git - mirror_edk2.git/commit - ShellPkg/Library/UefiShellLevel2CommandsLib/Cp.c
ShellPkg: fix mv and cp command related issues
authorTapan Shah <tapandshah@hp.com>
Tue, 7 Apr 2015 20:39:22 +0000 (20:39 +0000)
committerjcarsey <jcarsey@Edk2>
Tue, 7 Apr 2015 20:39:22 +0000 (20:39 +0000)
commitbf6bbc212d77736c9f81d6877701d4cf86030349
treeb3d017989cb50afd5937ee61f389afcca114b9ba
parentbbf57d4fb9047c01d1e27f8a05e0c41b94fbc4b7
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
ShellPkg/Library/UefiShellLevel2CommandsLib/Cp.c
ShellPkg/Library/UefiShellLevel2CommandsLib/Mv.c
ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.h