]> granicus.if.org Git - shadow/commitdiff
* src/sulogin.c: Ignore the return value of signal().
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Fri, 13 Jun 2008 21:30:09 +0000 (21:30 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Fri, 13 Jun 2008 21:30:09 +0000 (21:30 +0000)
ChangeLog
src/sulogin.c

index 7b464e7deef684aab3c7c0b5b56d51028ba5c1a3..ab5b0962a794a16ebb9a4009d6378f3b8747dbf8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-06-13  Nicolas François  <nicolas.francois@centraliens.net>
+
+       * src/sulogin.c: Ignore the return value of signal().
+
 2008-06-13  Nicolas François  <nicolas.francois@centraliens.net>
 
        * src/groups.c: sys_ngroups is only used when HAVE_GETGROUPS is
index ef66a8d08f560e4ba4d6434548adcb042dae43da..b129202cd6c918e6fe124fd4b306584f8dd2c952 100644 (file)
@@ -172,8 +172,8 @@ static RETSIGTYPE catch_signals (unused int sig)
 
        (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 @@ static RETSIGTYPE catch_signals (unused int sig)
        }
        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"));