]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bectl: simplify the tail end of the jail cmd
authorKyle Evans <kevans@FreeBSD.org>
Sun, 6 Dec 2020 15:58:50 +0000 (15:58 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Sun, 6 Dec 2020 15:58:50 +0000 (15:58 +0000)
commitb8f71f97509ecca21af9c82fd60c76be44af55a7
tree888730e4bb13158c3310f87308b742c158fc1cfe
parentc6bfc8968df9eee0452db8f70472e4bbf68e7b90
bectl: simplify the tail end of the jail cmd

This has already confused me once (and I'm pretty sure I wrote it), so let's
clarify: unjailing after the command has completed will only happen if we're
interactive and -U has not been specified.

This just folds two conditionals together to make it obvious how -b/-U
interact with each other.

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