From 421d056d9177f75ca84aa9da46d2d12c90cea550 Mon Sep 17 00:00:00 2001 From: Qiu Shumin Date: Mon, 18 Apr 2016 15:59:58 +0800 Subject: ShellPkg: Support connect a device handle recursively with '-r'. This patch make Shell 'connect' a device handle recursively with '-r' option. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey (cherry picked from commit b5e44fbc15085270adfc777c0f2c1890c1e9790f) --- ShellPkg/Library/UefiShellDriver1CommandsLib/Connect.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ShellPkg/Library/UefiShellDriver1CommandsLib') diff --git a/ShellPkg/Library/UefiShellDriver1CommandsLib/Connect.c b/ShellPkg/Library/UefiShellDriver1CommandsLib/Connect.c index 5d61c2f601..dd3d4a6a27 100644 --- a/ShellPkg/Library/UefiShellDriver1CommandsLib/Connect.c +++ b/ShellPkg/Library/UefiShellDriver1CommandsLib/Connect.c @@ -2,7 +2,7 @@ Main file for connect shell Driver1 function. (C) Copyright 2015 Hewlett-Packard Development Company, L.P.
- Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.
+ Copyright (c) 2010 - 2016, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -452,9 +452,10 @@ ShellCommandRunConnect ( // Count = (gInReconnect?0x4:0x3); if ((ShellCommandLineGetCount(Package) > Count) - ||((ShellCommandLineGetFlag(Package, L"-r") || ShellCommandLineGetFlag(Package, L"-c")) && ShellCommandLineGetCount(Package)>1) + ||(ShellCommandLineGetFlag(Package, L"-c") && ShellCommandLineGetCount(Package)>1) + ||(ShellCommandLineGetFlag(Package, L"-r") && ShellCommandLineGetCount(Package)>2) ||(ShellCommandLineGetFlag(Package, L"-r") && ShellCommandLineGetFlag(Package, L"-c") ) - ){ + ){ // // error for too many parameters // -- cgit v1.2.3