From ccf24539b6bf23345c57b76749b84c9af31ca8a5 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 15 Dec 2016 14:32:42 -0500 Subject: 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. --- src/timezone/zic.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/timezone/zic.c') diff --git a/src/timezone/zic.c b/src/timezone/zic.c index ec3fcd1f584..c68ae315499 100644 --- a/src/timezone/zic.c +++ b/src/timezone/zic.c @@ -3646,6 +3646,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)) -- cgit v1.2.3