git: 08a38bb098e9 - main - leave: we should also cache time zone
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 27 Nov 2024 14:18:33 UTC
The branch main has been updated by oshogbo:
URL: https://cgit.FreeBSD.org/src/commit/?id=08a38bb098e96f2ec77b26fab3b22bc4be89332a
commit 08a38bb098e96f2ec77b26fab3b22bc4be89332a
Author: Mariusz Zaborski <oshogbo@FreeBSD.org>
AuthorDate: 2024-11-27 14:17:07 +0000
Commit: Mariusz Zaborski <oshogbo@FreeBSD.org>
CommitDate: 2024-11-27 14:19:07 +0000
leave: we should also cache time zone
MFC after: 1 week
---
usr.bin/leave/leave.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/usr.bin/leave/leave.c b/usr.bin/leave/leave.c
index aed774025b71..a310f3e4a75c 100644
--- a/usr.bin/leave/leave.c
+++ b/usr.bin/leave/leave.c
@@ -63,6 +63,7 @@ main(int argc, char **argv)
if (setlocale(LC_TIME, "") == NULL)
warn("setlocale");
+ caph_cache_tzdata();
caph_cache_catpages();
if (caph_limit_stdio() < 0 || caph_enter() < 0)
err(EXIT_FAILURE, "capsicum");