0.76: please submit patches for this section with actual code/doc
patches!
+* more changes (extracted from redhat version) courtesy of
+ Harald Welte (Bugs pam_limits=436061, pam_lastlog=436060 - agmorgan)
* fix for legacy behavior of pam_setcred and pam_close_session in
the case that pam_authenticate and pam_open_session hadn't been
- called - bug report from S Park. (Bug 468724 - agmorgan)
+ called - bug report from Seongwan Park. (Bug 468724 - agmorgan)
* some BSD updates and fixes from Mark Murray - including a slightly
more robust conversation function and some minimization of gcc
warnings. (Bugs 449203,463984 - agmorgan)
pam_tally app install (with more pretty printing and a corrected
Makefile dependency) motivated by a (red hat diff) courtesy of Harald
Welte (Bug 436432 - agmorgan)
-* more pam_limits changes (extracted from redhat version) courtesy of
- Harald Welte (Bug 436061 - agmorgan)
* configure.in changes to help support non-Linux environments courtesy
of Scott T. Emery (Bug 422563 - agmorgan)
* made a pam_cracklib enhancement to interpret -ve limits in a
}
/* copy to last_login */
- strncpy(last_login.ll_host, remote_host
- , sizeof(last_login.ll_host));
+ strncpy(last_login.ll_host, remote_host,
+ sizeof(last_login.ll_host));
+ last_login.ll_host[sizeof(last_login.ll_host) - 1] = '\0';
remote_host = NULL;
/* set the terminal line */
D(("terminal = %s", terminal_line));
/* copy to last_login */
- strncpy(last_login.ll_line, terminal_line
- , sizeof(last_login.ll_line));
+ strncpy(last_login.ll_line, terminal_line,
+ sizeof(last_login.ll_line));
+ last_login.ll_host[sizeof(last_login.ll_host) - 1] = '\0';
terminal_line = NULL;
D(("locking last_log file"));