diff options
author | Timo Teräs <timo.teras@iki.fi> | 2014-04-10 09:04:38 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2014-04-10 09:05:32 +0300 |
commit | 93584b42f19b9e907c6a652542621ae7ea7b298f (patch) | |
tree | 52bdb67bca72a7688a32b36c5f54b981c9127078 /main/util-linux/fix-setenv-usage.patch | |
parent | 7f5e784d563fe686f9e1e58a63390840a6c6e203 (diff) | |
download | aports-93584b42f19b9e907c6a652542621ae7ea7b298f.tar.bz2 aports-93584b42f19b9e907c6a652542621ae7ea7b298f.tar.xz |
main/util-linux: fix hwclock setenv() usage
it's incorrect, and crashes on musl.
http://lists.alpinelinux.org/alpine-devel/3638.html
Diffstat (limited to 'main/util-linux/fix-setenv-usage.patch')
-rw-r--r-- | main/util-linux/fix-setenv-usage.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/main/util-linux/fix-setenv-usage.patch b/main/util-linux/fix-setenv-usage.patch new file mode 100644 index 0000000000..44638d40f5 --- /dev/null +++ b/main/util-linux/fix-setenv-usage.patch @@ -0,0 +1,12 @@ +diff -ru util-linux-2.23.2.orig/sys-utils/hwclock.c util-linux-2.23.2/sys-utils/hwclock.c +--- util-linux-2.23.2.orig/sys-utils/hwclock.c 2013-06-13 10:46:10.000000000 +0300 ++++ util-linux-2.23.2/sys-utils/hwclock.c 2014-04-10 09:01:47.931470656 +0300 +@@ -390,7 +390,7 @@ + * libc's: + * TZUTC=:/usr/share/zoneinfo/right/UTC + */ +- setenv("TZ", getenv("TZUTC"), TRUE); ++ setenv("TZ", getenv("TZUTC") ?: "", TRUE); + /* + * Note: tzset() gets called implicitly by the time code, + * but only the first time. When changing the environment |