]> git.ipfire.org Git - thirdparty/systemd.git/commit
coredumpctl: fix condition for checking coredump journal entry
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 17 Oct 2025 13:48:07 +0000 (22:48 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 20 Oct 2025 11:43:45 +0000 (20:43 +0900)
commit94a23e9c440962634e28b52babcb2b8aadd6ae96
tree5d1a4abe10f80ba43cb4626c0387392049ef2280
parent342084b0358f819df09a9f2f1dfa7b590bf9ae04
coredumpctl: fix condition for checking coredump journal entry

If one of PID, UID, GID, or SIGNAL is missing, then parse_uid() and
friends in the below will trigger assertion. This fixes that.

Also, only PID, UID, GID, SIGNAL, and COMM are mandatory fields, but
others are not, hence this drops others from the condition.

Moreover, this mekes 'coredumpctl --list' not fail even if there exists a
broken coredump entry in journal.
src/coredump/coredumpctl.c