]> git.ipfire.org Git - thirdparty/util-linux.git/commit
hwclock: Remove TZUTC
authorJ William Piggott <elseifthen@gmx.com>
Thu, 23 Apr 2015 23:53:58 +0000 (19:53 -0400)
committerKarel Zak <kzak@redhat.com>
Mon, 27 Apr 2015 08:00:15 +0000 (10:00 +0200)
commit165ae38f0d10baf47786e1eff04971da35eca577
tree556ccfce3a1f87ccfc3e67a6f60205abd7b75e6d
parent28f47fd2e0cc76ea2dafd0bd384d8586d4c901e3
hwclock: Remove TZUTC

commit d53f8ecfbf036eddb2aef737dc0973a613d80ced
introduced the TZUTC environment variable to
facilitate use of the zoneinfo 'right' database.
This was incorrect. Either the TZDIR environment
variable should be used or a system-wide
configuration for the 'right' database should be
used.

See hwclock(8) POSIX vs 'RIGHT' for more details.

TZUTC was undocumented and should be safe to remove.

The commit also caused a regression when using
musl libc, because when TZUTC is unset getenv()
returns a NULL pointer.
Reported-by: Isaac Dunham <ibid.ag@gmail.com>
Signed-off-by: J William Piggott <elseifthen@gmx.com>
sys-utils/hwclock.c