1 --- a/src/libical/icaltz-util.c
2 +++ b/src/libical/icaltz-util.c
4 static const char *zdir = NULL;
6 static const char *search_paths[] = {
11 "/usr/share/lib/zoneinfo"
15 const char *fname = ZONES_TAB_SYSTEM_FILENAME;
16 size_t i, num_search_paths;
18 + const char *env_tzdir = getenv ("TZDIR");
20 + sprintf (file_path, "%s/%s", env_tzdir, fname);
21 + if (!access (file_path, F_OK|R_OK)) {
27 num_search_paths = sizeof(search_paths) / sizeof(search_paths[0]);
28 for (i = 0; i < num_search_paths; i++) {
29 snprintf(file_path, MAXPATHLEN, "%s/%s", search_paths[i], fname);