[Pkg-shadow-commits] r2166 - in upstream/trunk: . src

nekral-guest at alioth.debian.org nekral-guest at alioth.debian.org
Fri Jun 13 21:30:10 UTC 2008


Author: nekral-guest
Date: 2008-06-13 21:30:09 +0000 (Fri, 13 Jun 2008)
New Revision: 2166

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/src/sulogin.c
Log:
	* src/sulogin.c: Ignore the return value of signal().


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2008-06-13 21:29:13 UTC (rev 2165)
+++ upstream/trunk/ChangeLog	2008-06-13 21:30:09 UTC (rev 2166)
@@ -1,5 +1,9 @@
 2008-06-13  Nicolas François  <nicolas.francois at centraliens.net>
 
+	* src/sulogin.c: Ignore the return value of signal().
+
+2008-06-13  Nicolas François  <nicolas.francois at centraliens.net>
+
 	* src/groups.c: sys_ngroups is only used when HAVE_GETGROUPS is
 	defined.
 

Modified: upstream/trunk/src/sulogin.c
===================================================================
--- upstream/trunk/src/sulogin.c	2008-06-13 21:29:13 UTC (rev 2165)
+++ upstream/trunk/src/sulogin.c	2008-06-13 21:30:09 UTC (rev 2166)
@@ -172,8 +172,8 @@
 
 	(void) strcpy (name, "root");	/* KLUDGE!!! */
 
-	signal (SIGALRM, catch_signals);	/* exit if the timer expires */
-	alarm (ALARM);		/* only wait so long ... */
+	(void) signal (SIGALRM, catch_signals);	/* exit if the timer expires */
+	(void) alarm (ALARM);		/* only wait so long ... */
 
 	while (true) {		/* repeatedly get login/password pairs */
 		pw_entry (name, &pwent);	/* get entry from password file */
@@ -231,7 +231,7 @@
 	}
 	strzero (pass);
 	(void) alarm (0);
-	signal (SIGALRM, SIG_DFL);
+	(void) signal (SIGALRM, SIG_DFL);
 	environ = newenvp;	/* make new environment active */
 
 	puts (_("Entering System Maintenance Mode"));




More information about the Pkg-shadow-commits mailing list