]> git.proxmox.com Git - mirror_edk2.git/commit
ShellPkg: Refine the code logic of mv.c.
authorQiu Shumin <shumin.qiu@intel.com>
Wed, 1 Jul 2015 01:46:20 +0000 (01:46 +0000)
committershenshushi <shenshushi@Edk2>
Wed, 1 Jul 2015 01:46:20 +0000 (01:46 +0000)
commit2ce8ce9b064c0058964cb35ddc7272059fb7663c
treeb95f59081f3af6174c16ff9162545df5c0124a80
parent203beadc12dbc5665d4de1003246fc13c94763fc
ShellPkg: Refine the code logic of mv.c.

When doing the mv we should check whether source is 'above' dest on file path tree. This patch make the check logic more precise.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin <shumin.qiu@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Samer El-Haj-Mahmoud <elhaj@hp.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17750 6f19259b-4bc3-4df7-8a09-765794883524
ShellPkg/Library/UefiShellLevel2CommandsLib/Mv.c