Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 6f4d38d

Browse files
committed
Sync our copy of the timezone library with IANA release tzcode2016j.
This is a trivial update (consisting in fact only in the addition of a comment). The point is just to get back to being synced with an official release of tzcode, rather than some ad-hoc point in their commit history, which is where commit 1f87181 left it.
1 parent 997a299 commit 6f4d38d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/timezone/README

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ match properly on the old version.
5050
Time Zone code
5151
==============
5252

53-
The code in this directory is currently synced with tzcode release 2016c.
53+
The code in this directory is currently synced with tzcode release 2016j.
5454
There are many cosmetic (and not so cosmetic) differences from the
5555
original tzcode library, but diffs in the upstream version should usually
5656
be propagated to our version. Here are some notes about that.

src/timezone/zic.c

+5
Original file line numberDiff line numberDiff line change
@@ -3634,6 +3634,11 @@ mkdirs(char const * argname, bool ancestors)
36343634
*/
36353635
if (mkdir(name, MKDIR_UMASK) != 0)
36363636
{
3637+
/*
3638+
* For speed, skip itsdir if errno == EEXIST. Since mkdirs is
3639+
* called only after open fails with ENOENT on a subfile, EEXIST
3640+
* implies itsdir here.
3641+
*/
36373642
int err = errno;
36383643

36393644
if (err != EEXIST && !itsdir(name))

0 commit comments

Comments
 (0)