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

(cherry picked from commit 7e0a7ef95fac1183854cab662bd9afa4647422d6)

Details

Provenance
desAuthored on Sep 15 2023, 9:36 PM
Reviewer
jrm
Differential Revision
D41880: tcpdump: Initialize tzcode early.
Parents
rG3f3c631da0ab: rtld: output rtld errors into the dbg channel
Branches
Unknown
Tags
Unknown