forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-crypt/p11-kit: fix date handling
Closes: https://bugs.gentoo.org/show_bug.cgi?id=688460 Thanks: Alexey Signed-off-by: Alon Bar-Lev <[email protected]> Package-Manager: Portage-2.3.66, Repoman-2.3.11 RepoMan-Options: --force
- Loading branch information
Showing
3 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
From 3d009fda4cb39157d6876e7d16cbc57f7b59bc86 Mon Sep 17 00:00:00 2001 | ||
From: Alon Bar-Lev <[email protected]> | ||
Date: Mon, 1 Jul 2019 13:38:25 +0300 | ||
Subject: [PATCH] trust: do not allow daylight to invalidate date validation | ||
|
||
Issue: 235 | ||
Signed-off-by: Alon Bar-Lev <[email protected]> | ||
--- | ||
trust/builder.c | 1 + | ||
1 file changed, 1 insertion(+) | ||
|
||
diff --git a/trust/builder.c b/trust/builder.c | ||
index d819dc8..2fc0c40 100644 | ||
--- a/trust/builder.c | ||
+++ b/trust/builder.c | ||
@@ -261,6 +261,7 @@ type_date (p11_builder *builder, | ||
return false; | ||
|
||
memcpy (&two, &tm, sizeof (tm)); | ||
+ two.tm_isdst = -1; // do not perform tz fixup | ||
if (mktime (&two) < 0) | ||
return false; | ||
|
||
-- | ||
2.21.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters