diff options
-rw-r--r-- | usr.sbin/jail/jail.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/jail/jail.c b/usr.sbin/jail/jail.c index 2040ff7..332be28 100644 --- a/usr.sbin/jail/jail.c +++ b/usr.sbin/jail/jail.c @@ -83,6 +83,7 @@ main(int argc, char **argv) if (setusercontext(lcap, pwd, pwd->pw_uid, LOGIN_SETALL & ~LOGIN_SETGROUP) != 0) err(1, "setusercontext"); + login_close(lcap); } if (execv(argv[3], argv + 3) != 0) err(1, "execv: %s", argv[3]); |