]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
nsenter: (usage) correct the formatting of eight option arguments
authorBenno Schulenberg <bensberg@telfort.nl>
Sun, 8 Mar 2026 11:20:02 +0000 (12:20 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 12 Mar 2026 10:12:16 +0000 (11:12 +0100)
Angle brackets should wrap each placeholder separately: <file> and
<nsid>.  Angle brackets should not enclose metacharacters (|) nor
literal ones (= and :).

(The mistaken formatting was introduced by commit f2a5997869.)

CC: Xiao Liang <shaw.leon@gmail.com>
Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
sys-utils/nsenter.c

index f93e75af278466748f05b818c54ba0d5f9efbe67..98da7551143bcaa7e90ce67568726ea6c5430360 100644 (file)
@@ -97,16 +97,16 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(USAGE_OPTIONS, out);
        fputs(_(" -a, --all                    enter all namespaces\n"), out);
        fputs(_(" -t, --target <PID>           target process to get namespaces from\n"), out);
-       fputs(_(" -m, --mount[=<file|:nsid>]   enter mount namespace\n"), out);
-       fputs(_(" -u, --uts[=<file|:nsid>]     enter UTS namespace (hostname etc)\n"), out);
-       fputs(_(" -i, --ipc[=<file|:nsid>]     enter System V IPC namespace\n"), out);
-       fputs(_(" -n, --net[=<file|:nsid>]     enter network namespace\n"), out);
+       fputs(_(" -m, --mount[=<file>|=:<nsid>]  enter mount namespace\n"), out);
+       fputs(_(" -u, --uts[=<file>|=:<nsid>]  enter UTS namespace (hostname etc)\n"), out);
+       fputs(_(" -i, --ipc[=<file>|=:<nsid>]  enter System V IPC namespace\n"), out);
+       fputs(_(" -n, --net[=<file>|=:<nsid>]  enter network namespace\n"), out);
        fputs(_(" -N, --net-socket <fd>        enter socket's network namespace (use with --target)\n"), out);
-       fputs(_(" -p, --pid[=<file|:nsid>]     enter pid namespace\n"), out);
-       fputs(_(" -C, --cgroup[=<file|:nsid>]  enter cgroup namespace\n"), out);
-       fputs(_(" -U, --user[=<file|:nsid>]    enter user namespace\n"), out);
+       fputs(_(" -p, --pid[=<file>|=:<nsid>]  enter pid namespace\n"), out);
+       fputs(_(" -C, --cgroup[=<file>|=:<nsid>]  enter cgroup namespace\n"), out);
+       fputs(_(" -U, --user[=<file>|=:<nsid>] enter user namespace\n"), out);
        fputs(_("     --user-parent            enter parent user namespace\n"), out);
-       fputs(_(" -T, --time[=<file|:nsid>]    enter time namespace\n"), out);
+       fputs(_(" -T, --time[=<file>|=:<nsid>] enter time namespace\n"), out);
        fputs(_(" -S, --setuid[=<uid>]         set uid in entered namespace\n"), out);
        fputs(_(" -G, --setgid[=<gid>]         set gid in entered namespace\n"), out);
        fputs(_("     --preserve-credentials   do not touch uids or gids\n"), out);