summaryrefslogtreecommitdiff
path: root/debian/patches-applied/misc_conv_allow_sigint.patch
blob: 75ffe8b7e74669c244dafa383d0d8e6c372f8d8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Patch for Debian bug #1708

Don't block SIGINT in misc_conv, it's perfectly valid to allow the user
to interrupt at a prompt if the application hasn't otherwise blocked the
signal.

Authors: Steve Langasek <vorlon@debian.org>

Upstream status: committed to CVS

Index: pam/Linux-PAM/libpam_misc/misc_conv.c
===================================================================
--- pam.orig/Linux-PAM/libpam_misc/misc_conv.c
+++ pam/Linux-PAM/libpam_misc/misc_conv.c
@@ -150,12 +150,11 @@
 	have_term = 1;
 
 	/*
-	 * We make a simple attempt to block TTY signals from terminating
+	 * We make a simple attempt to block TTY signals from suspending
 	 * the conversation without giving PAM a chance to clean up.
 	 */
 
 	sigemptyset(&nset);
-	sigaddset(&nset, SIGINT);
 	sigaddset(&nset, SIGTSTP);
 	(void) sigprocmask(SIG_BLOCK, &nset, &oset);