File pam_ssh-1.97-sigmask.patch of Package pam_ssh

Index: pam_ssh.c
===================================================================
--- pam_ssh.c.orig	2012-01-12 12:20:00.108458104 +0100
+++ pam_ssh.c	2012-01-12 16:00:01.650388767 +0100
@@ -554,6 +554,7 @@
         time_t file_ctime;              /* creation time of per-agent file */
         time_t time_now;                /* current time */
         time_t time_up;                 /* uptime */
+	sigset_t sigmask;		/* blocked signal mask */
 
         memset(&options, 0, sizeof options);
         pam_std_option(&options, other_options, argc, argv);
@@ -708,6 +714,10 @@
 					_exit(EX_OSERR);
 				}
 			}
+
+			sigemptyset(&sigmask);
+			sigprocmask(SIG_SETMASK, &sigmask, NULL);
+
 			arg[0] = "ssh-agent";
 			arg[1] = "-s";
 			arg[2] = NULL;
openSUSE Build Service is sponsored by