Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F98755463
D45297.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
532 B
Referenced Files
None
Subscribers
None
D45297.diff
View Options
diff --git a/lib/libcapsicum/capsicum_helpers.h b/lib/libcapsicum/capsicum_helpers.h
--- a/lib/libcapsicum/capsicum_helpers.h
+++ b/lib/libcapsicum/capsicum_helpers.h
@@ -133,8 +133,17 @@
static __inline void
caph_cache_tzdata(void)
{
+ time_t delta;
tzset();
+
+ /*
+ * The tzset() function does not cache all time zones.
+ * Some functions, such as gmtime(), require a GMT time zone.
+ * The only way to cache them is to call the function directly.
+ */
+ delta = 0;
+ (void)gmtime(&delta);
}
static __inline void
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 5, 3:20 PM (22 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
13652018
Default Alt Text
D45297.diff (532 B)
Attached To
Mode
D45297: libcapsicum: cache more time zone information
Attached
Detach File
Event Timeline
Log In to Comment