diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2016-12-15 14:32:42 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2016-12-15 14:32:58 -0500 |
commit | 6f4d38dbe06867df01dd62b52dae1654eba3976f (patch) | |
tree | 3dfeb1c0bc27f7a54be7315b56903e01d2ce1263 /src/timezone/zic.c | |
parent | 997a2994eef372d06798d2f3409a76098c1590a1 (diff) |
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 1f87181e1 left it.
Diffstat (limited to 'src/timezone/zic.c')
-rw-r--r-- | src/timezone/zic.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/timezone/zic.c b/src/timezone/zic.c index 2f623e03a58..a83cea12ddc 100644 --- a/src/timezone/zic.c +++ b/src/timezone/zic.c @@ -3634,6 +3634,11 @@ mkdirs(char const * argname, bool ancestors) */ if (mkdir(name, MKDIR_UMASK) != 0) { + /* + * For speed, skip itsdir if errno == EEXIST. Since mkdirs is + * called only after open fails with ENOENT on a subfile, EEXIST + * implies itsdir here. + */ int err = errno; if (err != EEXIST && !itsdir(name)) |