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
This commit is contained in:
Ed Maste 2025-07-25 08:13:39 -04:00
parent f2de5a6dd7
commit 0fde36fe04

View file

@ -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");