]> git.ipfire.org Git - thirdparty/util-linux.git/commit
hwclock: --epoch presence test fails
authorJ William Piggott <elseifthen@gmx.com>
Fri, 14 Jul 2017 19:51:47 +0000 (15:51 -0400)
committerJ William Piggott <elseifthen@gmx.com>
Sun, 16 Jul 2017 12:41:54 +0000 (08:41 -0400)
commitf7599b4f86f0db5856770fcdaeb599b76ea64b64
tree6eaec6e681b6f35a7073724031601602d8ea32e7
parent8ffa3b651d7e74acba8f1d831b7f68fdb3c66aae
hwclock: --epoch presence test fails

hwclock --setepoch --epoch 0
Will warn that the epoch option is required.

The --epoch presence test is made on its argument after it is
converted to an integer. This means any value it can be tested
for, can also be given as an input.

So make the conversion after the presence test, like the
--date option does.

Signed-off-by: J William Piggott <elseifthen@gmx.com>
sys-utils/hwclock-rtc.c
sys-utils/hwclock.8.in
sys-utils/hwclock.c
sys-utils/hwclock.h