mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 21:05:08 +00:00
sockstat: Fix error message when jail_attach fails
jail_errmsg is for libjail, jail_attach() is a system call.
This commit is contained in:
parent
ea8f1280a2
commit
ae37905b93
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=367025
|
@ -1372,7 +1372,7 @@ main(int argc, char *argv[])
|
|||
errx(2, "%s", jail_errmsg);
|
||||
case JAIL_SYS_NEW:
|
||||
if (jail_attach(opt_j) < 0)
|
||||
errx(3, "%s", jail_errmsg);
|
||||
err(3, "jail_attach()");
|
||||
/* Set back to -1 for normal output in vnet jail. */
|
||||
opt_j = -1;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue