1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-29 12:03:03 +00:00
freebsd/usr.sbin/jexec
Bjoern A. Zeeb 0f1fe22db5 Correctly check the number of prison states to not access anything
outside the prison_states array.
When checking if there is a name configured for the prison, check the
first character to not be '\0' instead of checking if the char array
is present, which it always is. Note, that this is different for the
*jailname in the syscall.

Found with:	Coverity Prevent(tm)
CID:		4156, 4155
MFC after:	4 weeks (just that I get the mail)
2008-12-11 01:04:25 +00:00
..
jexec.8 MFp4: 2008-11-29 14:32:14 +00:00
jexec.c Correctly check the number of prison states to not access anything 2008-12-11 01:04:25 +00:00
Makefile MFp4: 2008-11-29 14:32:14 +00:00