source: patches/shadow-4.0.7-fix_lastlog-1.patch @ 617118d

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 617118d was 617118d, checked in by Jim Gifford <clfs@…>, 18 years ago

r561@server (orig r559): root | 2005-06-05 02:38:49 -0700
Fixed Directory Structure

  • Property mode set to 100644
File size: 869 bytes
RevLine 
[617118d]1Submitted By: Archaic <archaic at linuxfromscratch dot org>
2Date: 2005-03-22
3Initial Package Version: 4.0.7
4Origin: http://cvs.pld.org.pl/shadow/libmisc/log.c?r1=1.7&r2=1.8
5Upstream Status: Already in CVS
6Description: Shadow fails to update the time of last login as noted by lastlog
7when logging into a regular console. The Port (tty) column does get updated.
8Remote logins and xterm logins seem to be not be broken, just console.
9
10diff -Naur shadow-4.0.7.orig/libmisc/log.c shadow-4.0.7/libmisc/log.c
11--- shadow-4.0.7.orig/libmisc/log.c     2003-12-17 12:52:25.000000000 +0000
12+++ shadow-4.0.7/libmisc/log.c  2005-03-22 05:53:59.000000000 +0000
13@@ -89,6 +89,7 @@
14 
15        ll_time = newlog.ll_time;
16        time (&ll_time);
17+       newlog.ll_time = ll_time;
18        strncpy (newlog.ll_line, line, sizeof newlog.ll_line);
19 #if HAVE_LL_HOST
20        strncpy (newlog.ll_host, host, sizeof newlog.ll_host);
Note: See TracBrowser for help on using the repository browser.