HardenedBSD/bin/ps
Jamie Landeg-Jones 3f0b80bc15 ps: handle incorrect -D values
I just noticed a slight issue with the '-D' option. Basically,
I accidentally typed something along the lines of:

ps -Dboth-p303

I.E. missing out the "space". Instead of giving an error, it behaved as
if I'd just typed "ps".

Looking at bin/ps/ps.c, where the -D option is parsed, it doesn't
error-out if there is no valid match.

This commit fixes the bug.
2024-05-06 19:13:35 +02:00
..
extern.h
fmt.c bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
keyword.c bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
Makefile
Makefile.depend
nlist.c bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
print.c bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
ps.1
ps.c ps: handle incorrect -D values 2024-05-06 19:13:35 +02:00
ps.h