summaryrefslogtreecommitdiff
path: root/srcx
diff options
context:
space:
mode:
Diffstat (limited to 'srcx')
-rw-r--r--srcx/injail.83
-rw-r--r--srcx/jid.c4
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 <jq@quick.com>
.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;