]> granicus.if.org Git - procps-ng/commit
ps: restore aix behavior while keeping an original fix
authorJim Warner <james.warner@comcast.net>
Wed, 30 Mar 2022 17:00:00 +0000 (12:00 -0500)
committerCraig Small <csmall@dropbear.xyz>
Fri, 1 Apr 2022 06:13:25 +0000 (17:13 +1100)
commit8cb646bdfc6e37b221f9616df96c6c116e6def28
tree96f99507e66521565575ffa4449dadd2fbb4ee0b
parent28c50b85642a29f5ccbba009b4573da4f68a2690
ps: restore aix behavior while keeping an original fix

The commit shown below broke the aix behavior that Dr.
Fink recently reported. However, in the proposed patch
the old behavior, showing garbage when '%cpu' was used
with an invalid formatting option, would appear again.

So this patch, based on Werner's patch, goes the extra
distance to prevent that. Along the way we'll disallow
commas in the aix format str to prevent their display.

Reference(s):
https://www.freelists.org/post/procps/Procpsng-400-released-with-newlib,2
. Mar, 2022 - where aix bug was introduced
commit 81df85a1b528d4edb9ab98b37fb6c6244430b6c4

Prototyped-by: Dr. Werner Fink <werner@suse.de>
Signed-off-by: Jim Warner <james.warner@comcast.net>
ps/display.c
ps/sortformat.c