X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=toolchain%2Fmusl%2Fpatches%2F110-read_timezone_from_fs.patch;h=b4349e73676d6a49df7f5e1d77ea7d04201a523f;hb=998f8bd02c128e0c0dcc6a8228ae5aabfec05468;hp=3ff63ac2205a723c3443d12e8a7fa1c1c3bcd161;hpb=7b4d039e00b0e29f416c21a022ce2a6db23a4c30;p=lede-git%2F.git diff --git a/toolchain/musl/patches/110-read_timezone_from_fs.patch b/toolchain/musl/patches/110-read_timezone_from_fs.patch index 3ff63ac220..b4349e7367 100644 --- a/toolchain/musl/patches/110-read_timezone_from_fs.patch +++ b/toolchain/musl/patches/110-read_timezone_from_fs.patch @@ -23,6 +23,6 @@ + s = tzfile = (void *)__map_file("/etc/TZ", &tzfile_size); + } + - if (!s || !*s) s = "/etc/localtime"; + if (!s) s = "/etc/localtime"; + if (!*s) s = __gmt; - if (old_tz && !strcmp(s, old_tz)) return;