From nobody Fri Sep 15 21:36:51 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RnSFH6cz7z4tDnT; Fri, 15 Sep 2023 21:36:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RnSFH67Rhz4TKK; Fri, 15 Sep 2023 21:36:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694813811; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=YgUJ4C5OVB7RcvH16yC77Hxh6fndiej8PFG0XTcLrok=; b=XP0QuaVZIMWdeJ8rX3ub/rgU2JYGCvyjdM0Y2Kp07P3ex0QcpknY6FH2YeFswozXjjism1 0yXqYD/gKCsmcpszKTuhG4ElyckP8lrCVoRHD6sXdnyvI/XMCTIsUYXaI7C89T6nZF4TXB 3g5IkWOqTkmXkJPDb8sx4abBobMxxzpioQyOPYwsENCPotW/GKCz9ndNLARzlBoDi9WJt6 u5K1fnetIFF8ZW52aypvWjuXtoVjC+gxjkNrW5dw7QF4ky55h9iq6khK+rGRTJeD555IWC 2CaxvdVeE0bAV3QnhbM2VHufWygpONFNLZW9tF1o6IvK+pTmiBlf8ttHkJbjBQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694813811; a=rsa-sha256; cv=none; b=NTzHuN+FRDjhZRY57qF12zRIU1IjC//XrO3O1JZg4GSf9yk/qXPuRTJUwquqnvQL2KD51j i6B2TLVtXLzK6ya5ocsinVlv+Iach4+uL2bdNwHkt1/olOlusUOewO6TNOs/ofSPzjS4W6 mn7k93g0XKRxoOGqgjx039jWoLQXFZq+8mlwwakpTTaH/yaprJ+1/3QLvBPMMdGMl930Ws NLPdpDsTWkQ6rihr7lwNgnWd/uXz8KudrFdV7eko7z0wSZ1wpjmUZPdQD1wtZphdGo/fl4 hRff6ScA5eMmiRS7pzWbewD2/GPmcJtpDau1dpIquZQ7wL7hhx7NYVzsFaS3NA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694813811; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=YgUJ4C5OVB7RcvH16yC77Hxh6fndiej8PFG0XTcLrok=; b=Wo2Rv8rhw5lC4wqMv8HsAfPiYmoTVB4CL2EC55gUjxbHEW13IPW2XPpo3Q80/a5G3yK8Ce 0LwyqfeO+UhqFHDgqnP10Bp/W0BLLDzEI42yI4jy5gQ+vknETqNxuKe8Tv2S6cMwli1GB3 556UvG8Nk2tn3ejyoulLclug46vSq8Vq+1WJlu9jcFZvqh7WqQnAz4YlKVYD8vW/MOysWX hTouVcx+obcNsfd7HioLxeU9aI6CBoldTmcO0PNrrr3lRKfQwEIq7a76Of/VytM5eTM4je iWzVvVSE1m4Uw4VoGNeMiGLHyegsN3a42VqCNbIhvvvCMyJ2Xr/sELmdj2Zl7w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RnSFH54ggzgLS; Fri, 15 Sep 2023 21:36:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 38FLapUi038045; Fri, 15 Sep 2023 21:36:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 38FLap9X038042; Fri, 15 Sep 2023 21:36:51 GMT (envelope-from git) Date: Fri, 15 Sep 2023 21:36:51 GMT Message-Id: <202309152136.38FLap9X038042@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?= Subject: git: 7e0a7ef95fac - main - tcpdump: Initialize tzcode early. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: des X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7e0a7ef95fac1183854cab662bd9afa4647422d6 Auto-Submitted: auto-generated The branch main has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=7e0a7ef95fac1183854cab662bd9afa4647422d6 commit 7e0a7ef95fac1183854cab662bd9afa4647422d6 Author: Dag-Erling Smørgrav AuthorDate: 2023-09-15 21:36:41 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2023-09-15 21:36:41 +0000 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 --- contrib/tcpdump/tcpdump.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/tcpdump/tcpdump.c b/contrib/tcpdump/tcpdump.c index 52209fedb999..8cfcb04fc093 100644 --- a/contrib/tcpdump/tcpdump.c +++ b/contrib/tcpdump/tcpdump.c @@ -1564,6 +1564,8 @@ main(int argc, char **argv) if (abort_on_misalignment(ebuf, sizeof(ebuf)) < 0) error("%s", ebuf); + tzset(); + while ( (op = getopt_long(argc, argv, SHORTOPTS, longopts, NULL)) != -1) switch (op) {