]> git.ipfire.org Git - people/ms/strongswan.git/commit
sw-collector: Iterate through history logs
authorAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 17 Oct 2021 13:53:42 +0000 (15:53 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 31 Dec 2021 13:33:22 +0000 (14:33 +0100)
commit903c68e069ae914b3c76417d3517eb26e216691f
tree065907cf425cc0cefa9bd81a285d870ed5b03bf4
parent0b76ca13abab84599125d7a1b39937bbcf25369e
sw-collector: Iterate through history logs

The logrotate function causes the apt history to be split into
several parts at arbitrary points in time. If history.log only
is parsed then some package installation changes stored in
zipped backup history files might get lost.

Thus sw-collector now searches all backup history files until
a date older than the current event stored in the collector.db
database is found, so that no entries get overlooked.
src/sw-collector/sw-collector.c
testing/scripts/build-baseimage
testing/tests/tnc/tnccs-20-ev-pt-tls/evaltest.dat
testing/tests/tnc/tnccs-20-ev-pt-tls/hosts/carol/etc/pts/collector.sql