diff options
author | Jakob Schlyter <jakob@cvs.openbsd.org> | 2003-01-20 21:52:47 +0000 |
---|---|---|
committer | Jakob Schlyter <jakob@cvs.openbsd.org> | 2003-01-20 21:52:47 +0000 |
commit | 48e2c77aa24c798f1094eefcfba2c46539704231 (patch) | |
tree | a86fb152bca715d506234dd2b80a41bee3571c30 /usr.sbin/bind/bin/named/unix | |
parent | 9c5fd97312b1e7ec1a1cc357f601577085f147e2 (diff) |
call tzset() before chroot
Diffstat (limited to 'usr.sbin/bind/bin/named/unix')
-rw-r--r-- | usr.sbin/bind/bin/named/unix/include/named/os.h | 3 | ||||
-rw-r--r-- | usr.sbin/bind/bin/named/unix/os.c | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/usr.sbin/bind/bin/named/unix/include/named/os.h b/usr.sbin/bind/bin/named/unix/include/named/os.h index 7a8529826ef..6f4e8d80043 100644 --- a/usr.sbin/bind/bin/named/unix/include/named/os.h +++ b/usr.sbin/bind/bin/named/unix/include/named/os.h @@ -46,4 +46,7 @@ ns_os_writepidfile(const char *filename, isc_boolean_t first_time); void ns_os_shutdown(void); +void +ns_os_tzset(void); + #endif /* NS_OS_H */ diff --git a/usr.sbin/bind/bin/named/unix/os.c b/usr.sbin/bind/bin/named/unix/os.c index 4512c0666e1..1235406d713 100644 --- a/usr.sbin/bind/bin/named/unix/os.c +++ b/usr.sbin/bind/bin/named/unix/os.c @@ -537,3 +537,10 @@ ns_os_shutdown(void) { closelog(); cleanup_pidfile(); } + +void +ns_os_tzset(void) { +#ifdef HAVE_TZSET + tzset(); +#endif +} |