From 288638f0aa07a271481305f07dc6b8fef3b81331 Mon Sep 17 00:00:00 2001 From: Tapan Shah Date: Fri, 29 Aug 2014 20:32:15 +0000 Subject: [PATCH] =?UTF-8?q?Add=20CTRL+C=20support=20for=20=E2=80=98attrib?= =?UTF-8?q?=E2=80=99=20command.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah Reviewed-By: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15991 6f19259b-4bc3-4df7-8a09-765794883524 --- ShellPkg/Library/UefiShellLevel2CommandsLib/Attrib.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ShellPkg/Library/UefiShellLevel2CommandsLib/Attrib.c b/ShellPkg/Library/UefiShellLevel2CommandsLib/Attrib.c index c891ca6afa..a8cb7cfb7e 100644 --- a/ShellPkg/Library/UefiShellLevel2CommandsLib/Attrib.c +++ b/ShellPkg/Library/UefiShellLevel2CommandsLib/Attrib.c @@ -1,6 +1,7 @@ /** @file Main file for attrib shell level 2 function. + Copyright (c) 2014, Hewlett-Packard Development Company, L.P.
Copyright (c) 2009 - 2010, 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 @@ -152,6 +153,11 @@ ShellCommandRunAttrib ( FileNode->Info->Attribute&EFI_FILE_READ_ONLY? L'R':L' ', FileNode->FileName ); + + if (ShellGetExecutionBreakFlag()) { + ShellStatus = SHELL_ABORTED; + break; + } } Status = ShellCloseFileMetaArg(&ListOfFiles); ListOfFiles = NULL;