]> git.ipfire.org Git - thirdparty/systemd.git/commit
cap-list: add CAPABILITY_TO_STRING() macro using compound initialization to allocate...
authorLennart Poettering <lennart@poettering.net>
Mon, 20 Feb 2023 10:43:13 +0000 (11:43 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 20 Feb 2023 15:27:26 +0000 (16:27 +0100)
commitc52c4d6974e3bc6d8ffdd3b73207617e06cd5157
tree487a3aee5767979b21ec8246daed0ffde951b8e5
parentd0e67c69ba7fa9984a2d96caa8ad4b7762ed3160
cap-list: add CAPABILITY_TO_STRING() macro using compound initialization to allocate fallback buffer

Let's add a helper that can return a numeric string in case we don't
recognize a name for a capability.
src/basic/cap-list.c
src/basic/cap-list.h
src/test/test-cap-list.c