1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-28 08:02:54 +00:00
freebsd/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 bin: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
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 bin: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
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 bin: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
ps.c ps: handle incorrect -D values 2024-05-06 19:13:35 +02:00
ps.h bin: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00