Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Nov 2002 14:27:00 -0800 (PST)
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 21046 for review
Message-ID:  <200211132227.gADMR0ce074261@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=21046

Change 21046 by peter@peter_daintree on 2002/11/13 14:26:32

	slightly less non-portable

Affected files ...

.. //depot/projects/ia64/lib/libpam/modules/pam_lastlog/pam_lastlog.c#11 edit

Differences ...

==== //depot/projects/ia64/lib/libpam/modules/pam_lastlog/pam_lastlog.c#11 (text+ko) ====

@@ -55,7 +55,6 @@
 #include <string.h>
 #include <syslog.h>
 #include <time.h>
-#include <timeconv.h>
 #include <unistd.h>
 #include <utmp.h>
 
@@ -111,7 +110,7 @@
 		goto file_err;
 	if ((flags & PAM_SILENT) == 0) {
 		if (read(fd, &ll, sizeof ll) == sizeof ll && ll.ll_time != 0) {
-			t = _time32_to_time(ll.ll_time);
+			t = ll.ll_time;
 			if (*ll.ll_host != '\0')
 				pam_info(pamh, "Last login: %.*s from %.*s",
 				    24 - 5, ctime(&t),
@@ -126,7 +125,7 @@
 	}
 
 	bzero(&ll, sizeof(ll));
-	ll.ll_time = _time_to_time32(time(NULL));
+	ll.ll_time = time(NULL);
 
 	/* note: does not need to be NUL-terminated */
 	strncpy(ll.ll_line, tty, sizeof(ll.ll_line));
@@ -143,7 +142,7 @@
 	 * Record session in utmp(5) and wtmp(5).
 	 */
 	bzero(&utmp, sizeof(utmp));
-	utmp.ut_time = _time_to_time32(time(NULL));
+	utmp.ut_time = time(NULL);
 	/* note: does not need to be NUL-terminated */
 	strncpy(utmp.ut_name, user, sizeof(utmp.ut_name));
 	if (rhost != NULL)

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211132227.gADMR0ce074261>