Ignore tzdata.zi and leapseconds tzdb files on Linux when loading time zones (#411)

This commit is contained in:
apretori-tic 2018-12-18 17:15:00 +00:00 committed by Howard Hinnant
parent 7231a182a4
commit 2cb4c34009

View File

@ -2660,6 +2660,8 @@ init_tzdb()
strcmp(d->d_name, "+VERSION") == 0 ||
strcmp(d->d_name, "zone.tab") == 0 ||
strcmp(d->d_name, "zone1970.tab") == 0 ||
strcmp(d->d_name, "tzdata.zi") == 0 ||
strcmp(d->d_name, "leapseconds") == 0 ||
strcmp(d->d_name, "leap-seconds.list") == 0 )
continue;
auto subname = dirname + folder_delimiter + d->d_name;