Author: archaic Date: 2005-03-21 23:05:27 -0700 (Mon, 21 Mar 2005) New Revision: 884
Added: trunk/hlfs/shadow-4.0.7-fix_lastlog-1.patch trunk/shadow/shadow-4.0.7-fix_lastlog-1.patch Log: Added a patch to fix lastlog's failure to record login time. Added: trunk/hlfs/shadow-4.0.7-fix_lastlog-1.patch =================================================================== --- trunk/hlfs/shadow-4.0.7-fix_lastlog-1.patch 2005-03-22 02:07:14 UTC (rev 883) +++ trunk/hlfs/shadow-4.0.7-fix_lastlog-1.patch 2005-03-22 06:05:27 UTC (rev 884) @@ -0,0 +1 @@ +link ../shadow/shadow-4.0.7-fix_lastlog-1.patch \ No newline at end of file Property changes on: trunk/hlfs/shadow-4.0.7-fix_lastlog-1.patch ___________________________________________________________________ Name: svn:special + * Added: trunk/shadow/shadow-4.0.7-fix_lastlog-1.patch =================================================================== --- trunk/shadow/shadow-4.0.7-fix_lastlog-1.patch 2005-03-22 02:07:14 UTC (rev 883) +++ trunk/shadow/shadow-4.0.7-fix_lastlog-1.patch 2005-03-22 06:05:27 UTC (rev 884) @@ -0,0 +1,20 @@ +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 +--- shadow-4.0.7.orig/libmisc/log.c 2003-12-17 12:52:25.000000000 +0000 ++++ shadow-4.0.7/libmisc/log.c 2005-03-22 05:53:59.000000000 +0000 +@@ -89,6 +89,7 @@ + + ll_time = newlog.ll_time; + time (&ll_time); ++ newlog.ll_time = ll_time; + strncpy (newlog.ll_line, line, sizeof newlog.ll_line); + #if HAVE_LL_HOST + strncpy (newlog.ll_host, host, sizeof newlog.ll_host); -- http://linuxfromscratch.org/mailman/listinfo/patches FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
