]> granicus.if.org Git - shadow/commitdiff
Add brackets.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Tue, 10 Jun 2008 22:10:21 +0000 (22:10 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Tue, 10 Jun 2008 22:10:21 +0000 (22:10 +0000)
src/sulogin.c

index 47720b3b0063a9eb8a76ed61f6bbee4f2f234cea..ef66a8d08f560e4ba4d6434548adcb042dae43da 100644 (file)
@@ -219,8 +219,9 @@ static RETSIGTYPE catch_signals (unused int sig)
                        STRFCPY (pass, cp);
                        strzero (cp);
                }
-               if (valid (pass, &pwent))       /* check encrypted passwords ... */
+               if (valid (pass, &pwent)) {     /* check encrypted passwords ... */
                        break;  /* ... encrypted passwords matched */
+               }
 
 #ifdef USE_SYSLOG
                SYSLOG (LOG_WARN, "Incorrect root password\n");