From: Benno Schulenberg Date: Sun, 2 Feb 2025 16:06:23 +0000 (+0100) Subject: setpriv: consistently use "" to indicate a list of capabilities X-Git-Tag: v2.42-start~61^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f4828e49e19125674bd054871b658bb4e0d68a46;p=thirdparty%2Futil-linux.git 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 --- 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);