HardenedBSD/bin/ps
sobomax 8e683e45ef Don't try to decode old-style options if the argv[1] begins with `-' and the
second character represents some option taking an argument. This fixes
problem when ps(1) is invoked for examply as follows:

$ ps -Ufoobar1234

the above example results in option string being interpreted as
-U foobarp1234 - note extra `p'.

Reported by:	Vladimir Sotnikov <vovan@kyivstar.net>
MFC after:	2 weeks
2002-06-20 14:55:53 +00:00
..
extern.h
fmt.c
keyword.c
lomac.c
lomac.h
Makefile
nlist.c
print.c
ps.1 ps(1) appeared in v4 2002-06-10 22:48:51 +00:00
ps.c Don't try to decode old-style options if the argv[1] begins with `-' and the 2002-06-20 14:55:53 +00:00
ps.h