HomeFreeBSD

tcpdump: Initialize tzcode early.

Description

tcpdump: Initialize tzcode early.

An explicit tzset() call is usually not needed as it happens implicitly
the first time we call localtime() or mktime(), but in some cases
(sandboxing, chroot) this may be too late.

PR: 273807
MFC after: 3 days
Reviewed by: jrm
Differential Revision: https://reviews.freebsd.org/D41880
Approved by: re (kib)

(cherry picked from commit 7e0a7ef95fac1183854cab662bd9afa4647422d6)
(cherry picked from commit 51d54ed6151b5381bca703d85762d9d054463003)

Details

Provenance
desAuthored on Sep 15 2023, 9:36 PM
Reviewer
jrm
Differential Revision
D41880: tcpdump: Initialize tzcode early.
Parents
rG6dff5fb10b5e: lib/libc/amd64: back out amd64 SIMD work
Branches
Unknown
Tags
Unknown