]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bectl(8): Address Coverity complaints
authorkevans <kevans@FreeBSD.org>
Tue, 28 May 2019 16:12:16 +0000 (16:12 +0000)
committerkevans <kevans@FreeBSD.org>
Tue, 28 May 2019 16:12:16 +0000 (16:12 +0000)
commit2f2deeb2812fcd7da04d214f930a52d6438aa5e0
tree4ec0c4fdad91b0bc2a29b85d16441a1d1e0484de
parentb905869fc5104b6f8c19c14d4c698ac7d9836165
bectl(8): Address Coverity complaints

CID 1400451: case 0 is missing a break/return and falling through to the
default case.  waitpid(0, ...) makes little sense in the child, we likely
wanted to terminate immediately.

CID 1400453: size argument uses sizeof(char **) instead of sizeof(char *)
and is assigned to a char **; sizeof's match but "this isn't a portable
assumption".

CID: 14004511400453
MFC after: 3 days
sbin/bectl/bectl_jail.c