From f316609eb45353eb9ee5b7aec3ed280dd08b9a31 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Sun, 17 Nov 2002 23:46:45 +0000 Subject: Oops. Some ut_time stuff slipped through the cracks. These turned out to be non-fatal due to stack alignment roundups. --- libexec/ftpd/logwtmp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libexec/ftpd') diff --git a/libexec/ftpd/logwtmp.c b/libexec/ftpd/logwtmp.c index 531f99671150..6626c8f56bf3 100644 --- a/libexec/ftpd/logwtmp.c +++ b/libexec/ftpd/logwtmp.c @@ -47,6 +47,7 @@ static const char rcsid[] = #include #include +#include #include #include #include @@ -82,7 +83,7 @@ ftpd_logwtmp(line, name, addr) (void)strncpy(ut.ut_line, line, sizeof(ut.ut_line)); (void)strncpy(ut.ut_name, name, sizeof(ut.ut_name)); (void)strncpy(ut.ut_host, host, sizeof(ut.ut_host)); - (void)time(&ut.ut_time); + ut.ut_time = _time_to_time32(time(NULL)); if (write(fd, &ut, sizeof(struct utmp)) != sizeof(struct utmp)) (void)ftruncate(fd, buf.st_size); -- cgit v1.3