summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammad Dashti <mdashti@gmail.com>2021-09-22 17:13:04 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-09-22 17:36:36 +0000
commit22fa3b7067bc0d9d025dc9191fd42ca509fc879f (patch)
tree2ce88883606ff4fe1fdf1b3ab4955c69da16f681
parent0290c9a8af8842303b6afc251bbff00d9f906def (diff)
downloadmongo-22fa3b7067bc0d9d025dc9191fd42ca509fc879f.tar.gz
SERVER-59701 Avoid filtering out `Etc` timezone files when reading system tzfiles
-rw-r--r--src/third_party/timelib-2021.06/parse_zoneinfo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/third_party/timelib-2021.06/parse_zoneinfo.c b/src/third_party/timelib-2021.06/parse_zoneinfo.c
index 8a174fd3852..e6343228ade 100644
--- a/src/third_party/timelib-2021.06/parse_zoneinfo.c
+++ b/src/third_party/timelib-2021.06/parse_zoneinfo.c
@@ -63,7 +63,8 @@ static int index_filter(const struct dirent *ent)
&& strcmp(ent->d_name, "posix") != 0
&& strcmp(ent->d_name, "posixrules") != 0
&& strcmp(ent->d_name, "right") != 0
- && strcmp(ent->d_name, "Etc") != 0
+ // TODO SERVER-60141 the upgrade to timelib 2021.09 or later should include this change
+ // && strcmp(ent->d_name, "Etc") != 0
&& strcmp(ent->d_name, "localtime") != 0
&& strstr(ent->d_name, ".list") == NULL
&& strstr(ent->d_name, ".tab") == NULL;