mtd: add linksys_bootcount to the ipq40xx target
[openwrt/.git] / toolchain / musl / patches / 110-read_timezone_from_fs.patch
index 3ff63ac2205a723c3443d12e8a7fa1c1c3bcd161..fb98f7d10ee83155f4d46ee1a226c082c0d9d9a4 100644 (file)
@@ -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 = __utc;
  
-       if (old_tz && !strcmp(s, old_tz)) return;