]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bectl: simplify the tail end of the jail cmd
authorkevans <kevans@FreeBSD.org>
Sun, 6 Dec 2020 15:58:50 +0000 (15:58 +0000)
committerkevans <kevans@FreeBSD.org>
Sun, 6 Dec 2020 15:58:50 +0000 (15:58 +0000)
commitf7b0aedd1c50ab83b6d83a0805a09a203f6a1b5e
tree888730e4bb13158c3310f87308b742c158fc1cfe
parent95c1fc1e5d0896ce50871c442ee5506f99d00204
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