]> git.ipfire.org Git - thirdparty/systemd.git/commit
journald-kmsg: fix reopening /dev/kmsg
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 13 Jul 2025 14:24:08 +0000 (23:24 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 18 Jul 2025 06:27:37 +0000 (15:27 +0900)
commit7bc133fe5628c9decc7c768d2ab189eb5b308398
tree7d78526bcfa35eb9ec540aefe80d4f1d19902e43
parent1416a3df43aba6812336bbab77d74bb4095bcf49
journald-kmsg: fix reopening /dev/kmsg

The previous logic was completely broken:
- the access mode comparison is broken,
- flushing kmsg did not work, as the configuration is already disabled,
- seqnum file is not opened when previously disabled,
- failure in reopening /dev/kmsg should not be critical.

This fixes the above issues.
src/journal/journald-config.c
src/journal/journald-kmsg.c
src/journal/journald-kmsg.h