Package: newt / 0.52.17-1

messagebox_escape.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Author: Alastair McKinstry <mckinstry@debian.org>
Description: Fix for bug: incorrect result given for <no> selected by ESC pressed in whiptail
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=#665784
Last-Updated: 2014-06-11
Forwarded: no

Index: newt-0.52.17/dialogboxes.c
===================================================================
--- newt-0.52.17.orig/dialogboxes.c
+++ newt-0.52.17/dialogboxes.c
@@ -568,7 +568,7 @@ int messageBox(const char * text, int he
 
 	answer = newtFormGetCurrent(form);
 
-	if (answer == no)
+	if ((rc == DLG_OKAY) && (answer == no))
 	    rc = DLG_CANCEL;
     }
     else {