git: 0fde36fe04b2 - main - pom: Cache tzdata before entering capability mode

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Sun, 27 Jul 2025 16:01:10 UTC
The branch main has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=0fde36fe04b2b656a2215f7dad07a52884e8dcfd

commit 0fde36fe04b2b656a2215f7dad07a52884e8dcfd
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2025-07-25 12:13:39 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2025-07-27 16:00:53 +0000

    pom: Cache tzdata before entering capability mode
    
    Pom uses localtime() so needs tzdata available.
    
    PR:             278574
    Reported by:    Tatsuki Makino
    Reviewed by:    ivy
    Sponsored by:   The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D51521
---
 usr.bin/pom/pom.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/usr.bin/pom/pom.c b/usr.bin/pom/pom.c
index db0033373b47..bcfbcadc8238 100644
--- a/usr.bin/pom/pom.c
+++ b/usr.bin/pom/pom.c
@@ -83,6 +83,7 @@ main(int argc, char **argv)
 		err(1, "unable to limit capabitilities for stdio");
 
 	caph_cache_catpages();
+	caph_cache_tzdata();
 	if (caph_enter() < 0)
 		err(1, "unable to enter capability mode");