procps/src
Jim Warner cbbe8fe324 top: ensure an EXIT_FAILURE with bad command line args
When getopt usage was added (plus long options) in the
patch shown below, top no longer returned EXIT_FAILURE
when the error message was generated by getopt itself.

This commit will restore the proper behavior no matter
who might issue a command line argument error message.

Thanks to Bastian Bittorf for discovering this buglet.

Reference(s):
https://gitlab.com/procps-ng/procps/-/issues/273
. sep, 2021 - getopt with long form args
commit c91b371485

Signed-off-by: Jim Warner <james.warner@comcast.net>
2023-03-08 22:18:39 +11:00
..
ps misc: Update the copyrights for the ps and top sources 2023-02-08 16:53:04 +11:00
tests tests: Dont compare floats with == 2023-03-01 17:20:42 +11:00
top top: ensure an EXIT_FAILURE with bad command line args 2023-03-08 22:18:39 +11:00
free.c misc: Update the copyrights of files 2023-02-07 21:09:48 +11:00
kill.c misc: Update the copyrights of files 2023-02-07 21:09:48 +11:00
pgrep.c pgrep: Use only --signal option for signal 2023-03-01 17:35:14 +11:00
pidof.c misc: Update the copyrights of files 2023-02-07 21:09:48 +11:00
pmap.c misc: Update the copyrights of files 2023-02-07 21:09:48 +11:00
pwdx.c misc: Update the copyrights of files 2023-02-07 21:09:48 +11:00
skill.c misc: Update the copyrights of files 2023-02-07 21:09:48 +11:00
slabtop.c misc: Update the copyrights of files 2023-02-07 21:09:48 +11:00
sysctl.c misc: Update the copyrights of files 2023-02-07 21:09:48 +11:00
tload.c misc: Update the copyrights of files 2023-02-07 21:09:48 +11:00
uptime.c misc: Update the copyrights of files 2023-02-07 21:09:48 +11:00
vmstat.c misc: Update the copyrights of files 2023-02-07 21:09:48 +11:00
w.c w: make sure null terminated ut_* strings are used 2023-03-08 07:30:56 +11:00
watch.c misc: Update the copyrights of files 2023-02-07 21:09:48 +11:00