source:
patches/shadow-4.0.7-fix_lastlog-1.patch@
61c0e64
Last change on this file since 61c0e64 was 617118d, checked in by , 19 years ago | |
---|---|
|
|
File size: 869 bytes |
-
libmisc/log.c
Submitted By: Archaic <archaic at linuxfromscratch dot org> Date: 2005-03-22 Initial Package Version: 4.0.7 Origin: http://cvs.pld.org.pl/shadow/libmisc/log.c?r1=1.7&r2=1.8 Upstream Status: Already in CVS Description: Shadow fails to update the time of last login as noted by lastlog when logging into a regular console. The Port (tty) column does get updated. Remote logins and xterm logins seem to be not be broken, just console. diff -Naur shadow-4.0.7.orig/libmisc/log.c shadow-4.0.7/libmisc/log.c
old new 89 89 90 90 ll_time = newlog.ll_time; 91 91 time (&ll_time); 92 newlog.ll_time = ll_time; 92 93 strncpy (newlog.ll_line, line, sizeof newlog.ll_line); 93 94 #if HAVE_LL_HOST 94 95 strncpy (newlog.ll_host, host, sizeof newlog.ll_host);
Note:
See TracBrowser
for help on using the repository browser.