From 098e3696a14878ba9afb95f14e50ec223729b9d8 Mon Sep 17 00:00:00 2001 From: Emile Cormier Date: Sat, 12 Mar 2022 20:10:31 -0400 Subject: [PATCH] sniff_realpath detects anything starting with "posix" --- src/tz.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tz.cpp b/src/tz.cpp index 9d55d4f1..4f96abaf 100644 --- a/src/tz.cpp +++ b/src/tz.cpp @@ -3921,7 +3921,7 @@ sniff_realpath(const char* timezone) if (realpath(timezone, rp) == nullptr) throw system_error(errno, system_category(), "realpath() failed"); auto result = extract_tz_name(rp); - return result != "posixrules"; + return result.find("posix") != 0; } const time_zone*