]> git.ipfire.org Git - thirdparty/systemd.git/commit
coredump: get rid of _META_MANDATORY_MAX
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 26 May 2025 10:04:44 +0000 (12:04 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 26 May 2025 13:33:08 +0000 (15:33 +0200)
commit49f1f2d4a7612bbed5211a73d11d6a94fbe3bb69
tree5f8c4659466cc30cb7de928bacaf9677faaa658b
parent61d78f1788f8fff154f975db45b0103c12f9b163
coredump: get rid of _META_MANDATORY_MAX

No functional change. This change is done in preparation for future changes.
Currently, the list of fields which are received on the command line is a
strict subset of the fields which are always expected to be received on a
socket. But when we add new kernel args in the future, we'll have two
non-overlapping sets and this approach will not work. Get rid of the variable
and enumerate the required fields. This set will never change, so this is
actually more maintainable.

The message with the hint where to add new fields is switched with
_META_ARGV_MAX. The new order is more correct.
src/coredump/coredump.c