svn commit: r367025 - head/usr.bin/sockstat

Ryan Moeller freqlabs at FreeBSD.org
Sat Oct 24 22:36:21 UTC 2020


Author: freqlabs
Date: Sat Oct 24 22:36:20 2020
New Revision: 367025
URL: https://svnweb.freebsd.org/changeset/base/367025

Log:
  sockstat: Fix error message when jail_attach fails
  
  jail_errmsg is for libjail, jail_attach() is a system call.

Modified:
  head/usr.bin/sockstat/sockstat.c

Modified: head/usr.bin/sockstat/sockstat.c
==============================================================================
--- head/usr.bin/sockstat/sockstat.c	Sat Oct 24 21:10:53 2020	(r367024)
+++ head/usr.bin/sockstat/sockstat.c	Sat Oct 24 22:36:20 2020	(r367025)
@@ -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;


More information about the svn-src-head mailing list