summaryrefslogtreecommitdiffstats
path: root/libexec/ftpd
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2002-11-17 23:46:45 +0000
committerpeter <peter@FreeBSD.org>2002-11-17 23:46:45 +0000
commit570525a6c74ab8a435767aa2e2c75d708670c27f (patch)
treefe2ac6129e2e21b162ba9b23cd0299a74ec47421 /libexec/ftpd
parentb18da394baaf09a3b68061a3c0c817ffe1db02d7 (diff)
downloadFreeBSD-src-570525a6c74ab8a435767aa2e2c75d708670c27f.zip
FreeBSD-src-570525a6c74ab8a435767aa2e2c75d708670c27f.tar.gz
Oops. Some ut_time stuff slipped through the cracks. These turned out
to be non-fatal due to stack alignment roundups.
Diffstat (limited to 'libexec/ftpd')
-rw-r--r--libexec/ftpd/logwtmp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/ftpd/logwtmp.c b/libexec/ftpd/logwtmp.c
index 531f996..6626c8f 100644
--- a/libexec/ftpd/logwtmp.c
+++ b/libexec/ftpd/logwtmp.c
@@ -47,6 +47,7 @@ static const char rcsid[] =
#include <fcntl.h>
#include <time.h>
+#include <timeconv.h>
#include <netdb.h>
#include <utmp.h>
#include <unistd.h>
@@ -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);
OpenPOWER on IntegriCloud