From 5e68d624e93d6f1af931fa9a49b1fe3ddba308e5 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Thu, 20 May 2004 00:17:50 +0000 Subject: Small bug and doc fixes --- srcx/injail.8 | 3 ++- srcx/jid.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/srcx/injail.8 b/srcx/injail.8 index 036ef7b..fbe5dc9 100644 --- a/srcx/injail.8 +++ b/srcx/injail.8 @@ -71,6 +71,7 @@ cause this to fail as well. There aught to be a cleaner way. .Sh AUTHOR James E. Quick .Sh SEE ALSO -.Xr jailer 8 , +.Xr jails 8 , .Xr jail 8 , +.Xr jls 8 , .Xr kvm 3 diff --git a/srcx/jid.c b/srcx/jid.c index 93d0e94..779d13a 100644 --- a/srcx/jid.c +++ b/srcx/jid.c @@ -69,7 +69,7 @@ int main(int argc, char* argv[]) if(running_in_jail() != 0) errx(1, "can't run from inside jail"); - len = get_jail_sysctl(&xp); + len = get_jail_sysctl(&sxp); xp = find_jail(argv[0], len, sxp); strtol(argv[0], &e, 10); @@ -89,7 +89,7 @@ int main(int argc, char* argv[]) if(xp == NULL) errx(1, "unknown jail host name: %s", argv[0]); - printf("%d\n", xp->pr_host); + printf("%d\n", xp->pr_id); } return 0; -- cgit v1.2.3