diff options
author | Jamie Gritton <jamie@FreeBSD.org> | 2012-05-28 20:44:11 +0000 |
---|---|---|
committer | Jamie Gritton <jamie@FreeBSD.org> | 2012-05-28 20:44:11 +0000 |
commit | a6486f6008bd9c21edad919477e7c7b68082a312 (patch) | |
tree | 9644e66b9e28b973607e196f0d998bbf8bd6cb54 /usr.sbin/jail/command.c | |
parent | 687aeb3821cb3144a06fb18268c456be2af6e4a7 (diff) | |
download | src-test2-a6486f6008bd9c21edad919477e7c7b68082a312.tar.gz src-test2-a6486f6008bd9c21edad919477e7c7b68082a312.zip |
Notes
Diffstat (limited to 'usr.sbin/jail/command.c')
-rw-r--r-- | usr.sbin/jail/command.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/jail/command.c b/usr.sbin/jail/command.c index b7495763272a..b7d5168d8b4f 100644 --- a/usr.sbin/jail/command.c +++ b/usr.sbin/jail/command.c @@ -246,7 +246,7 @@ next_proc(int nonblock) /* * Run a single command for a jail, possible inside the jail. */ -int +static int run_command(struct cfjail *j) { const struct passwd *pwd; @@ -290,6 +290,8 @@ run_command(struct cfjail *j) } else { if (create_jail(j) < 0) return -1; + if (iflag) + printf("%d\n", j->jid); if (verbose >= 0 && (j->name || verbose > 0)) jail_note(j, "created\n"); dep_done(j, DF_LIGHT); |