]> git.ipfire.org Git - thirdparty/util-linux.git/commit
hwclock: don't set time for --systz
authorKarel Zak <kzak@redhat.com>
Wed, 4 Jul 2012 11:40:01 +0000 (13:40 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 4 Jul 2012 11:43:51 +0000 (13:43 +0200)
commit839be2ba6b44fa9dc927f081d547ebadec9de19c
treee1ca652bdb1048e083cc7a30dcdc034483749266
parent34f4d961633082f62f64ce172e4389715cd75989
hwclock: don't set time for --systz

Not sure why, but the current --systz uses non-NULL timeval for
settimeofday(). It means that build-in kernel warp clock mechanism is
not used and the system time is always modified.

The built-in kernel implementation allows to move the clock by
timezone only for very first settimeofday() call.

Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/hwclock.c