git: 2e6697c8d90d - stable/13 - pom: Cache tzdata before entering capability mode
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 29 Aug 2025 15:11:32 UTC
The branch stable/13 has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=2e6697c8d90dd812a288031dca253f863602da3f
commit 2e6697c8d90dd812a288031dca253f863602da3f
Author: Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2025-07-25 12:13:39 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2025-08-29 15:11:18 +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
(cherry picked from commit 0fde36fe04b2b656a2215f7dad07a52884e8dcfd)
(cherry picked from commit 05459c1b860c086ada0cacb398fa5d61a240e0ca)
---
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 01370114f36e..4c648c359ef9 100644
--- a/usr.bin/pom/pom.c
+++ b/usr.bin/pom/pom.c
@@ -95,6 +95,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");