From f4828e49e19125674bd054871b658bb4e0d68a46 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sun, 2 Feb 2025 17:06:23 +0100 Subject: [PATCH] setpriv: consistently use "" to indicate a list of capabilities The existing "" did not indicate that each capability name must be preceded by "+" or "-". Also, to indicate that the list needs to be separated by commas, one would have to use "[,...]", not "". So... instead of trying to cram all that info in there, just say "", like for --bounding-set. Signed-off-by: Benno Schulenberg --- sys-utils/setpriv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys-utils/setpriv.c b/sys-utils/setpriv.c index 907845545..f68e6c48a 100644 --- a/sys-utils/setpriv.c +++ b/sys-utils/setpriv.c @@ -134,8 +134,8 @@ static void __attribute__((__noreturn__)) usage(void) fputs(USAGE_OPTIONS, out); fputs(_(" -d, --dump show current state (and do not exec)\n"), out); fputs(_(" --nnp, --no-new-privs disallow granting new privileges\n"), out); - fputs(_(" --ambient-caps set ambient capabilities\n"), out); - fputs(_(" --inh-caps set inheritable capabilities\n"), out); + fputs(_(" --ambient-caps set ambient capabilities\n"), out); + fputs(_(" --inh-caps set inheritable capabilities\n"), out); fputs(_(" --bounding-set set capability bounding set\n"), out); fputs(_(" --ruid set real uid\n"), out); fputs(_(" --euid set effective uid\n"), out); -- 2.47.3