]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-journal: fix calculation of number of 'total' entries in the chained arrays
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 25 Sep 2023 02:10:01 +0000 (11:10 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 30 Sep 2023 11:10:15 +0000 (20:10 +0900)
commitfe6f2bd8a64108ab9d42ee4633f1cab2e05f2915
tree7ff6c86e6d9ab27418f8a82ab273daea7c9700b2
parentb63f09e4ee5ccfbb764e996154d78953093d9132
sd-journal: fix calculation of number of 'total' entries in the chained arrays

If there's corruption and we are going upwards, then the 'total'
must be decreased when we go to the previous array. However,
previously, we wrongly kept or increased the number. This fixes
the behavior.
src/libsystemd/sd-journal/journal-file.c