+2009-04-22 Nicolas François <nicolas.francois@centraliens.net>
+
+ * src/login.c: Ignore the return value of puts(), fputs(),
+ strftime().
+
2009-04-22 Nicolas François <nicolas.francois@centraliens.net>
* src/login.c: timeout, delay, and retries should be unsigned.
closelog ();
exit (0);
}
- puts (_("\n[Disconnect bypassed -- root login allowed.]"));
+ (void) puts (_("\n[Disconnect bypassed -- root login allowed.]"));
}
}
#endif /* !USE_PAM */
exit(0);
} else if (retcode == PAM_ABORT) {
/* Serious problems, quit now */
- fputs (_("login: abort requested by PAM\n"),stderr);
+ (void) fputs (_("login: abort requested by PAM\n"), stderr);
SYSLOG ((LOG_ERR,"PAM_ABORT returned from pam_authenticate()"));
PAM_END;
exit(99);
(void) sleep (delay);
}
- puts (_("Login incorrect"));
+ (void) puts (_("Login incorrect"));
/* allow only one attempt with -r or -f */
if (rflg || fflg || (retries <= 0)) {
/* Reset the lockout times if logged in */
if ( (0 != faillog.fail_max)
&& (faillog.fail_cnt >= faillog.fail_max)) {
- puts (_("Warning: login re-enabled after temporary lockout."));
+ (void) puts (_("Warning: login re-enabled after temporary lockout."));
SYSLOG ((LOG_WARN,
"login '%s' re-enabled after temporary lockout (%d failures)",
username, (int) faillog.fail_cnt));
time_t ll_time = ll.ll_time;
#ifdef HAVE_STRFTIME
- strftime (ptime, sizeof (ptime),
- "%a %b %e %H:%M:%S %z %Y",
- localtime (&ll_time));
+ (void) strftime (ptime, sizeof (ptime),
+ "%a %b %e %H:%M:%S %z %Y",
+ localtime (&ll_time));
printf (_("Last login: %s on %s"),
ptime, ll.ll_line);
#else