freebsd-nq/usr.bin
Yaroslav Tykhiy a6afe5ada8 Fix and extend the -j option to pkill/pgrep WRT the jail
wildcard specifications.  Earlier the only wildcard syntax
was "-j 0" for "any jail".  There were at least
two shortcomings in it:  First, jail ID 0 was abused; it
meant "no jail" in other utils, e.g., ps(1).  Second, it
was impossible to match processed not in jail, which could
be useful to rc.d developers.  Therefore a new syntax is
introduced: "-j any" means any jail while "-j none" means
out of jail.  The old syntax is preserved for compatibility,
but now it's deprecated because it's limited and confusing.

Update the respective regression tests.  While I'm here,
make the tests more complex but sensitive:  Start several
processes, some in jail and some out of jail, so we can
detect that only the right processes are killed by pkill
or matched by pgrep.

Reviewed by:	gad, pjd
MFC after:	1 week
2006-11-23 11:55:17 +00:00
..
alias
apply
asa
at
atm
awk Fix a bug converting a variable from the numeric type to a string. 2006-10-25 21:23:20 +00:00
banner o Check that -w width is not above maximum. Use DWIDTH instead of 2006-11-22 21:05:17 +00:00
basename
biff
bluetooth
brandelf
bsdiff
bzip2
bzip2recover
c89
c99
calendar Add my birthdate to the calendar. 2006-11-07 14:35:34 +00:00
cap_mkdb
catman
chat
checknr
chkey
chpass Fix bug introduced in rev 1.23: 2006-09-25 15:06:24 +00:00
cksum
cmp
col
colcrt
colldef
colrm
column Add missing parentheses to fix a segmentation fault that is easily 2006-09-19 22:11:43 +00:00
comm
compile_et
compress
csplit
csup
ctags
cut
dig
dirname
du Markup fixes. 2006-09-29 15:20:48 +00:00
ee
elf2aout
elfdump
enigma
env
expand Document that unexpand(1)'s -a and -t options are exclusive. 2006-10-13 16:22:25 +00:00
false
fetch Try to preserve ownership and permissions when replacing an existing file. 2006-11-10 22:05:41 +00:00
file Markup fixes. 2006-09-29 15:20:48 +00:00
file2c
find Update the list of POSIX extensions. 2006-10-08 10:31:44 +00:00
finger
fmt
fold
from
fstat
fsync
ftp
gcore
gencat
getconf
getent Revise markup. 2006-09-30 17:27:50 +00:00
getopt
gprof Remove alpha-specific stuff. 2006-08-23 12:12:56 +00:00
head
hesinfo
hexdump
host
id Add a -a option as a no-op for Solaris compatibility, as briefly 2006-09-26 22:28:12 +00:00
indent initialize variable (WARNS=6) 2006-09-13 05:06:12 +00:00
ipcrm
ipcs
join
jot Style facelift. 2006-11-06 15:58:35 +00:00
kdump o optname, the third {set,get}sockopt(2) argument, is an enum, not a bitmap. 2006-09-18 13:49:57 +00:00
keylogin
keylogout
killall
ktrace Add needed hyphens, note the KTRACE kernel option, bump doc date. 2006-11-06 15:17:50 +00:00
ktrdump
lam Document that jot(1), rs(1), and lam(1) first appeared in 4.2BSD. 2006-10-20 04:31:01 +00:00
last
lastcomm
ldd
leave
less In rev. 1.2 we have introduced a fallback handler for files with unknown 2006-08-30 08:20:34 +00:00
lessecho Hook lessecho(1) to build. 2006-08-20 15:52:17 +00:00
lesskey
lex
limits
locale
locate Markup fixes. 2006-09-29 15:20:48 +00:00
lock
lockf
logger Markup fixes. 2006-09-29 15:20:48 +00:00
login Markup fixes. 2006-09-29 15:20:48 +00:00
logins
logname
look
lorder Document the NM environment variable. 2006-10-25 09:40:07 +00:00
lsvfs
m4
mail
make Don't go beyond the provided string when parsing the `\' character. 2006-10-09 19:37:26 +00:00
makewhatis
mesg
minigzip
ministat Improve input parsing: 2006-08-28 08:27:02 +00:00
mkdep
mkfifo
mklocale
mkstr
mktemp Markup fixes. 2006-09-29 15:20:48 +00:00
mkuzip Markup fixes. 2006-09-29 15:20:48 +00:00
msgs
mt
nc
ncal
ncplist
ncplogin
netstat Don't always print a space character in show_stat(), since a space 2006-11-08 15:15:05 +00:00
newgrp
newkey
nfsstat
nice
nl
nohup
nslookup
nsupdate
objformat
opieinfo
opiekey
opiepasswd
pagesize
passwd
paste WARNS=6 chocked on unitialized variable. 2006-09-12 05:08:36 +00:00
pathchk
pkill Fix and extend the -j option to pkill/pgrep WRT the jail 2006-11-23 11:55:17 +00:00
pr
printenv
printf
quota - Document the default disk block usage unit. 2006-10-21 23:57:38 +00:00
renice
rev
rlogin
rpcgen
rpcinfo
rs Document that jot(1), rs(1), and lam(1) first appeared in 4.2BSD. 2006-10-20 04:31:01 +00:00
rsh
rup
ruptime
rusers
rwall
rwho
script
sed
shar
showmount
smbutil
sockstat In revision 1.14 I broke the -4 and -6 options of sockstat(1). 2006-11-12 19:03:39 +00:00
split Markup fixes. 2006-09-29 15:20:48 +00:00
stat
su Backout previous change (SIGSYS related). The fix has been applied to the 2006-10-24 17:41:28 +00:00
systat Fix the format specifier suitable for uintmax_t. 2006-11-23 11:51:23 +00:00
tabs
tail Better handle the -F case: 2006-10-21 18:05:06 +00:00
talk
tar Fix "1 day ago", "yesterday" and similar relative-time phrases 2006-11-02 04:16:15 +00:00
tcopy
tee
telnet
tftp Set txrx_error to 1 when we reach abort. This makes the program correctly set the exit code. 2006-09-28 21:22:21 +00:00
time Markup fixes. 2006-09-29 15:20:48 +00:00
tip Fixed the -# option to work as documented in a manpage. 2006-09-07 19:48:52 +00:00
top Second stage of unbreaking thr formatting of the NICE field: decode the 2006-11-07 10:03:10 +00:00
touch
tput At least one argument is required. 2006-10-12 21:10:55 +00:00
tr - Document all character classes our tr(1) supports. [1] 2006-10-13 16:13:45 +00:00
true
truncate Markup fixes. 2006-09-29 15:20:48 +00:00
truss Markup fixes. 2006-09-29 15:20:48 +00:00
tset
tsort
tty
ul
uname
unexpand Document that unexpand(1)'s -a and -t options are exclusive. 2006-10-13 16:22:25 +00:00
unifdef
uniq
units
unvis
usbhidaction
usbhidctl Bump document date. 2006-11-23 05:08:06 +00:00
users
uudecode
uuencode
uuidgen
vacation
vgrind Manual page tweaks. 2006-08-29 18:11:20 +00:00
vi
vis
vmstat Oops, fix the format specifier to what was intended. 2006-11-23 11:47:34 +00:00
w
wall
wc
what
whereis
which
who
whois Markup fixes. 2006-09-29 15:20:48 +00:00
window
write
xargs Markup fixes. 2006-09-29 15:20:48 +00:00
xinstall Markup fixes. 2006-09-29 15:20:48 +00:00
xlint Pass "-Wtraditional -Wno-system-headers" to compiler as two separate 2006-09-21 02:05:38 +00:00
xstr
yacc
yes
ypcat
ypmatch
ypwhich
Makefile Build libsmb and smbutil on ia64. 2006-08-22 03:22:17 +00:00
Makefile.inc