]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsns: Fix "lowers" -> "lowest" typo in --help for COL_PID
authorW. Trevor King <wking@tremily.us>
Tue, 15 Dec 2015 19:46:25 +0000 (11:46 -0800)
committerKarel Zak <kzak@redhat.com>
Tue, 5 Jan 2016 11:03:18 +0000 (12:03 +0100)
The process-selection logic is in add_process_to_namespace:

  if (!ns->proc || ns->proc->pid > proc->pid)
    ns->proc = proc;

so it's just selecting the lowest PID.

Signed-off-by: W. Trevor King <wking@tremily.us>
sys-utils/lsns.c

index 79189345ad6c06ba575312e49e2cdaf2a4ee5768..725d8a481adf9b27ba7184ba048189af89cf932f 100644 (file)
@@ -84,7 +84,7 @@ static const struct colinfo infos[] = {
        [COL_TYPE]    = { "TYPE",    5, 0, N_("kind of namespace") },
        [COL_PATH]    = { "PATH",    0, 0, N_("path to the namespace")},
        [COL_NPROCS]  = { "NPROCS",  5, SCOLS_FL_RIGHT, N_("number of processes in the namespace") },
-       [COL_PID]     = { "PID",     5, SCOLS_FL_RIGHT, N_("lowers PID in the namespace") },
+       [COL_PID]     = { "PID",     5, SCOLS_FL_RIGHT, N_("lowest PID in the namespace") },
        [COL_PPID]    = { "PPID",    5, SCOLS_FL_RIGHT, N_("PPID of the PID") },
        [COL_COMMAND] = { "COMMAND", 0, SCOLS_FL_TRUNC, N_("command line of the PID")},
        [COL_UID]     = { "UID",     0, SCOLS_FL_RIGHT, N_("UID of the PID")},