]> git.proxmox.com Git - mirror_edk2.git/commit
ShellPkg/MV: Fix MV to deny moving parent of current directory
authorChen A Chen <chen.a.chen@intel.com>
Tue, 22 Nov 2016 08:16:02 +0000 (16:16 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Mon, 5 Dec 2016 01:18:32 +0000 (09:18 +0800)
commit0db4acb61ac4e79a8a95b0e82874e8b6bed8e4bb
treea602ef755972df389d7aee8dd5c9cad4a906eb53
parent7bbe0b3eff9e7876808ce1b96b9a71360984cf91
ShellPkg/MV: Fix MV to deny moving parent of current directory

When user types "mv -r fs0:\A\ fs1:\" under directory
"fs0:\A\B\", MV command should deny such movement.

The patch fixes the above issue.
It also denies moving current directory.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Chen A Chen <chen.a.chen@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
ShellPkg/Library/UefiShellLevel2CommandsLib/Mv.c