diff options
author | 2015-03-15 00:41:27 +0000 | |
---|---|---|
committer | 2015-03-15 00:41:27 +0000 | |
commit | f7055df57d065ba4f741cc0da1e46b156de29446 (patch) | |
tree | afea67933d21514295f11d6bc76d0204443150d3 /usr.sbin/tcpdump | |
parent | Eliminate the question 'Which cd?' and just show the available cd's (diff) | |
download | wireguard-openbsd-f7055df57d065ba4f741cc0da1e46b156de29446.tar.xz wireguard-openbsd-f7055df57d065ba4f741cc0da1e46b156de29446.zip |
tzfile.h is an internal header that should never have been installed.
What's worse, the tzfile.h that gets installed is over 20 years old
and doesn't match the real tzfile.h in libc/time. This makes the
tree safe for /usr/include/tzfile.h removal. The TM_YEAR_BASE
define has been moved to time.h temporarily until its usage is
replaced by 1900 in the tree. Actual removal of tzfile.h is pending
a ports build. Based on a diff from deraadt@
Diffstat (limited to 'usr.sbin/tcpdump')
-rw-r--r-- | usr.sbin/tcpdump/privsep.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/tcpdump/privsep.c b/usr.sbin/tcpdump/privsep.c index da9dfd58867..c416eadb456 100644 --- a/usr.sbin/tcpdump/privsep.c +++ b/usr.sbin/tcpdump/privsep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: privsep.c,v 1.32 2015/01/20 18:26:58 deraadt Exp $ */ +/* $OpenBSD: privsep.c,v 1.33 2015/03/15 00:41:28 millert Exp $ */ /* * Copyright (c) 2003 Can Erkin Acar @@ -41,7 +41,6 @@ #include <stdlib.h> #include <string.h> #include <syslog.h> -#include <tzfile.h> #include <unistd.h> #include "interface.h" @@ -701,7 +700,7 @@ priv_localtime(const time_t *t) { static struct tm lt, gt0; static struct tm *gt = NULL; - static char zone[TZ_MAX_CHARS]; + static char zone[PATH_MAX]; if (gt != NULL) { gt = gmtime(t); |