]> git.ipfire.org Git - thirdparty/util-linux.git/commit
docs: Fix adjtime documentation
authorPierre Labastie <pierre.labastie@neuf.fr>
Fri, 6 Dec 2019 11:50:46 +0000 (12:50 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 6 Dec 2019 11:50:46 +0000 (12:50 +0100)
commit90084a26089ad2aba77d5bcff2b0dff44c6271d0
tree03e34b5588e4d2364aa2b124de85389bf3fdde20
parent1c788737d74d43e726842a76ed195191946929ca
docs: Fix adjtime documentation

The first line of the adjtime file is made of three numbers (see=20
hwclock.c):
- a drift factor as a decimal float
- the time of last adjust as a decimal integer
- a zero (for compatibility) as a decimal float.

but both man pages (hwclock.8 and adj_time.5) tell that the third
number is a decimal integer.

Of course this is harmless if somebody edits the adjtime file with
"0"=20 as the third number: it will be correctly read by hwclock
anyway.  But if for some reason, a program reads the adjtime file and
expects an integer, it will fail, because hwclock writes O.OOOO0O as
the third=20 number.

Signed-off-by:: Pierre Labastie <pierre.labastie@neuf.fr>
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/adjtime_config.5
sys-utils/hwclock.8.in