From: Benno Schulenberg Date: Sun, 8 Mar 2026 11:20:03 +0000 (+0100) Subject: nsenter: (usage) improve the alignment of the option descriptions X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc6bf407134410cc5c04b078280c1d9367bd9fb4;p=thirdparty%2Futil-linux.git nsenter: (usage) improve the alignment of the option descriptions Perfect alignment is not possible, otherwise too little space remains for the descriptions. Also, slightly reword one description to fit within 80 columns again, and align also a description that was missed by commit 986188d1da two monts ago. Signed-off-by: Benno Schulenberg --- diff --git a/sys-utils/nsenter.c b/sys-utils/nsenter.c index 98da75511..e10ba9cf9 100644 --- a/sys-utils/nsenter.c +++ b/sys-utils/nsenter.c @@ -95,34 +95,34 @@ static void __attribute__((__noreturn__)) usage(void) fputs(_("Run a program with namespaces of other processes.\n"), out); fputs(USAGE_OPTIONS, out); - fputs(_(" -a, --all enter all namespaces\n"), out); - fputs(_(" -t, --target target process to get namespaces from\n"), out); - fputs(_(" -m, --mount[=|=:] enter mount namespace\n"), out); - fputs(_(" -u, --uts[=|=:] enter UTS namespace (hostname etc)\n"), out); - fputs(_(" -i, --ipc[=|=:] enter System V IPC namespace\n"), out); - fputs(_(" -n, --net[=|=:] enter network namespace\n"), out); - fputs(_(" -N, --net-socket enter socket's network namespace (use with --target)\n"), out); - fputs(_(" -p, --pid[=|=:] enter pid namespace\n"), out); + fputs(_(" -a, --all enter all namespaces\n"), out); + fputs(_(" -t, --target target process to get namespaces from\n"), out); + fputs(_(" -m, --mount[=|=:] enter mount namespace\n"), out); + fputs(_(" -u, --uts[=|=:] enter UTS namespace (hostname etc)\n"), out); + fputs(_(" -i, --ipc[=|=:] enter System V IPC namespace\n"), out); + fputs(_(" -n, --net[=|=:] enter network namespace\n"), out); + fputs(_(" -N, --net-socket enter socket's network namespace (needs --target)\n"), out); + fputs(_(" -p, --pid[=|=:] enter pid namespace\n"), out); fputs(_(" -C, --cgroup[=|=:] enter cgroup namespace\n"), out); - fputs(_(" -U, --user[=|=:] enter user namespace\n"), out); - fputs(_(" --user-parent enter parent user namespace\n"), out); - fputs(_(" -T, --time[=|=:] enter time namespace\n"), out); - fputs(_(" -S, --setuid[=] set uid in entered namespace\n"), out); - fputs(_(" -G, --setgid[=] set gid in entered namespace\n"), out); - fputs(_(" --preserve-credentials do not touch uids or gids\n"), out); - fputs(_(" --keep-caps retain capabilities granted in user namespaces\n"), out); - fputs(_(" -r, --root[=] set the root directory\n"), out); - fputs(_(" -w, --wd[=] set the working directory\n"), out); - fputs(_(" -W, --wdns set the working directory in namespace\n"), out); - fputs(_(" -e, --env inherit environment variables from target process\n"), out); - fputs(_(" -F, --no-fork do not fork before exec'ing \n"), out); - fputs(_(" -c, --join-cgroup join the cgroup of the target process\n"), out); + fputs(_(" -U, --user[=|=:] enter user namespace\n"), out); + fputs(_(" --user-parent enter parent user namespace\n"), out); + fputs(_(" -T, --time[=|=:] enter time namespace\n"), out); + fputs(_(" -S, --setuid[=] set uid in entered namespace\n"), out); + fputs(_(" -G, --setgid[=] set gid in entered namespace\n"), out); + fputs(_(" --preserve-credentials do not touch uids or gids\n"), out); + fputs(_(" --keep-caps retain capabilities granted in user namespaces\n"), out); + fputs(_(" -r, --root[=] set the root directory\n"), out); + fputs(_(" -w, --wd[=] set the working directory\n"), out); + fputs(_(" -W, --wdns set the working directory in namespace\n"), out); + fputs(_(" -e, --env inherit environment variables from target process\n"), out); + fputs(_(" -F, --no-fork do not fork before exec'ing \n"), out); + fputs(_(" -c, --join-cgroup join the cgroup of the target process\n"), out); #ifdef HAVE_LIBSELINUX - fputs(_(" -Z, --follow-context set SELinux context according to --target PID\n"), out); + fputs(_(" -Z, --follow-context set SELinux context according to --target PID\n"), out); #endif fputs(USAGE_SEPARATOR, out); - fprintf(out, USAGE_HELP_OPTIONS(30)); + fprintf(out, USAGE_HELP_OPTIONS(31)); fprintf(out, USAGE_MAN_TAIL("nsenter(1)")); exit(EXIT_SUCCESS);