summaryrefslogtreecommitdiff
path: root/src/timezone/zic.c
diff options
context:
space:
mode:
authorTom Lane2016-12-15 19:32:42 +0000
committerTom Lane2016-12-15 19:33:10 +0000
commitb95f4bf07468165b09c29816def5292200d393cf (patch)
tree7279ce99ac607c465efcfeee13c61dd74b28f7f5 /src/timezone/zic.c
parent4b9d466c14083003bd80e1ce02e617b2b92df7fe (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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/timezone/zic.c b/src/timezone/zic.c
index 7d4d216723d..105dd0dfa92 100644
--- a/src/timezone/zic.c
+++ b/src/timezone/zic.c
@@ -3642,6 +3642,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))