Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F138838464
D52680.id162610.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
680 B
Referenced Files
None
Subscribers
None
D52680.id162610.diff
View Options
diff --git a/contrib/tzcode/localtime.c b/contrib/tzcode/localtime.c
--- a/contrib/tzcode/localtime.c
+++ b/contrib/tzcode/localtime.c
@@ -1649,9 +1649,13 @@
lclptr = sp = malloc(sizeof *lclptr);
# endif
if (sp) {
- if (zoneinit(sp, name, TZLOAD_FROMENV | TZLOAD_TZSTRING) != 0) {
+ int err = zoneinit(sp, name, TZLOAD_FROMENV | TZLOAD_TZSTRING);
+ if (err != 0) {
zoneinit(sp, "", 0);
- strcpy(sp->chars, UNSPEC);
+ /* Abbreviate with "-00" if there was an error.
+ Do not treat a missing TZDEFAULT file as an error. */
+ if (name || err != ENOENT)
+ strcpy(sp->chars, UNSPEC);
}
if (0 < lcl)
strcpy(lcl_TZname, name);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 6, 6:11 AM (45 m, 24 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
22837476
Default Alt Text
D52680.id162610.diff (680 B)
Attached To
Mode
D52680: tzcode: Use -00 only for invalid time zones
Attached
Detach File
Event Timeline
Log In to Comment