]> granicus.if.org Git - shadow/commitdiff
* src/login.c: failcount does not need to be signed.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 9 May 2009 13:14:50 +0000 (13:14 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 9 May 2009 13:14:50 +0000 (13:14 +0000)
ChangeLog
src/login.c

index 11d49ee0d3782b658eab0ba863413c4d7de77ff5..9f9714db42116afe5b9498042a77219fa11bc991 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-05-07  Nicolas François  <nicolas.francois@centraliens.net>
+
+       * src/login.c: failcount does not need to be signed.
+
 2009-05-07  Nicolas François  <nicolas.francois@centraliens.net>
 
        * src/Makefile.am: PAM enabled chpasswd now needs to be linked to
index f480e7b4a1e2454bd7c6b77a0a4705eee5f5be35..abf649e435bfaeb6642f17ec9de161b0784dc869 100644 (file)
@@ -738,7 +738,7 @@ int main (int argc, char **argv)
 #endif
        /* if fflg, then the user has already been authenticated */
        if (!fflg) {
-               int failcount = 0;
+               unsigned int failcount = 0;
                char hostn[256];
                char loginprompt[256];  /* That's one hell of a prompt :) */
 
@@ -790,10 +790,10 @@ int main (int argc, char **argv)
 
                        if (retcode == PAM_MAXTRIES) {
                                SYSLOG ((LOG_NOTICE,
-                                        "TOO MANY LOGIN TRIES (%d)%s FOR '%s'",
+                                        "TOO MANY LOGIN TRIES (%u)%s FOR '%s'",
                                         failcount, fromhost, failent_user));
                                fprintf(stderr,
-                                       _("Maximum number of tries exceeded (%d)\n"),
+                                       _("Maximum number of tries exceeded (%u)\n"),
                                        failcount);
                                PAM_END;
                                exit(0);
@@ -804,7 +804,7 @@ int main (int argc, char **argv)
                                PAM_END;
                                exit(99);
                        } else if (retcode != PAM_SUCCESS) {
-                               SYSLOG ((LOG_NOTICE,"FAILED LOGIN (%d)%s FOR '%s', %s",
+                               SYSLOG ((LOG_NOTICE,"FAILED LOGIN (%u)%s FOR '%s', %s",
                                         failcount, fromhost, failent_user,
                                         pam_strerror (pamh, retcode)));
                                failed = true;
@@ -834,10 +834,10 @@ int main (int argc, char **argv)
 
                        if (failcount >= retries) {
                                SYSLOG ((LOG_NOTICE,
-                                        "TOO MANY LOGIN TRIES (%d)%s FOR '%s'",
+                                        "TOO MANY LOGIN TRIES (%u)%s FOR '%s'",
                                         failcount, fromhost, failent_user));
                                fprintf(stderr,
-                                       _("Maximum number of tries exceeded (%d)\n"),
+                                       _("Maximum number of tries exceeded (%u)\n"),
                                        failcount);
                                PAM_END;
                                exit(0);