summaryrefslogtreecommitdiffstats
path: root/usr.sbin/jexec/jexec.8
diff options
context:
space:
mode:
authormr <mr@FreeBSD.org>2008-05-29 17:00:01 +0000
committermr <mr@FreeBSD.org>2008-05-29 17:00:01 +0000
commitb03aca8204af897b0b35365f84f03bb934dda94d (patch)
tree6a4bded6d8681794abba244761df2ce7c3073d44 /usr.sbin/jexec/jexec.8
parent4ab736a48e0210d0590c2f490c981f7b6d60a697 (diff)
downloadFreeBSD-src-b03aca8204af897b0b35365f84f03bb934dda94d.zip
FreeBSD-src-b03aca8204af897b0b35365f84f03bb934dda94d.tar.gz
Fix some bugs/complaints:
- make addr2jid static - add -h Flag for hostname/ip-number search - s,strncmp,strcmp, in addr2jid - return jid only if found once Requested by: some
Diffstat (limited to 'usr.sbin/jexec/jexec.8')
-rw-r--r--usr.sbin/jexec/jexec.811
1 files changed, 5 insertions, 6 deletions
diff --git a/usr.sbin/jexec/jexec.8 b/usr.sbin/jexec/jexec.8
index 2df0f60..40c4979 100644
--- a/usr.sbin/jexec/jexec.8
+++ b/usr.sbin/jexec/jexec.8
@@ -34,7 +34,7 @@
.Sh SYNOPSIS
.Nm
.Op Fl u Ar username | Fl U Ar username
-.Op Ar jid | Ar hostname | Ar ip-number
+.Op Fl h Ar hostname | Fl h Ar ip-number | Ar jid
.Ar command ...
.Sh DESCRIPTION
The
@@ -42,11 +42,11 @@ The
utility executes
.Ar command
inside the jail identified by
-.Ar jid
-or
.Ar hostname
or
-.Ar ip-number .
+.Ar ip-number
+or
+.Ar jid .
.Pp
The following options are available:
.Bl -tag -width indent
@@ -61,8 +61,7 @@ should run.
.El
.Sh "CAUTIONS"
Only jid is guaranteed to uniquely identify a jail.
-For hostname or ip-number to work here unambiguousness of one or both
-of them have to be assured beforehand.
+Hostname or ip-number only work here if matched to one unique jail.
.Sh SEE ALSO
.Xr jail_attach 2 ,
.Xr jail 8 ,
OpenPOWER on IntegriCloud