]> git.ipfire.org Git - thirdparty/chrony.git/commit
conf: don't load sourcedir during initstepslew and RTC init
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 12 Mar 2024 13:30:27 +0000 (14:30 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 12 Mar 2024 13:57:30 +0000 (14:57 +0100)
commitf49be7f06343ee27fff2950937d7f6742f53976f
tree9d88c65054dd10b0f27b6fbafd5a91248b42b487
parent7fe98a83b867c1821b6f51c2ed8b3374825dfafd
conf: don't load sourcedir during initstepslew and RTC init

If the reload sources command was received in the chronyd start-up
sequence with initstepslew and/or RTC init (-s option), the sources
loaded from sourcedirs caused a crash due to failed assertion after
adding sources specified in the config.

Ignore the reload sources command until chronyd enters the normal
operation mode.

Fixes: 519796de3756 ("conf: add sourcedirs directive")
conf.c
test/simulation/203-initreload [new file with mode: 0755]