ps: Correct BSD c option

procps 3.3.17 the c option changed the command/args field
to cmd but this got removed as part of newlib

Functionality is back in with a test case.

References:
 https://bugs.debian.org/1026326

Signed-off-by: Craig Small <csmall@dropbear.xyz>
This commit is contained in:
Craig Small
2022-12-19 16:50:12 +11:00
parent ab978d62ae
commit dd3cb0892d
3 changed files with 12 additions and 2 deletions

View File

@ -51,3 +51,9 @@ expect_pass "$test" "error: missing AIX field descriptor"
set test "ps with unknown AIX field"
spawn $ps -o "%p %Z"
expect_pass "$test" "error: unknown AIX field descriptor"
make_testproc
set test "ps with c option"
spawn $ps co command $testproc1_pid
expect_pass "$test" "^COMMAND\\s+spcorp\\s*$"
kill_testproc