]> granicus.if.org Git - procps-ng/commit
top: add another tiny bit of robustness to rcfile code
authorJim Warner <james.warner@comcast.net>
Tue, 15 Mar 2022 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@dropbear.xyz>
Mon, 21 Mar 2022 20:43:56 +0000 (07:43 +1100)
commitedc5efcac2fcad40dd14100954457939545a7132
tree29bdcae290e0d3449c074f9dc5670f96a66f0a65
parenta03a09ae1e69e48037c7329414b0c27fe26fc407
top: add another tiny bit of robustness to rcfile code

At this point I don't know if the Rc.id ever carried a
value of 'b', 'c', 'd' or 'e' in a public release. But
I do know that those values ought not to be recognized
in any configuration file. Now they won't be for sure.

[ while the absence of this new check didn't produce ]
[ an error message, it would skip the initialization ]
[ of default values plus possible string extensions. ]

Signed-off-by: Jim Warner <james.warner@comcast.net>
top/top.c