diff options
author | mr <mr@FreeBSD.org> | 2008-05-26 19:24:45 +0000 |
---|---|---|
committer | mr <mr@FreeBSD.org> | 2008-05-26 19:24:45 +0000 |
commit | 490bec4936eee1d25f030e553669f380aaf07898 (patch) | |
tree | 07ac59e55086d44f6a76edc345e49c7628fdb6fb /usr.sbin/jexec | |
parent | 1501f1e5dde3e7081973b321eb9099d967a73fa9 (diff) | |
download | FreeBSD-src-490bec4936eee1d25f030e553669f380aaf07898.zip FreeBSD-src-490bec4936eee1d25f030e553669f380aaf07898.tar.gz |
Add CAUTIONS section to the manpage and update .Dd.
Spelling fix.
PR: bin/119305 (reminded by Frank Behrens)
Suggested by: rwatson, maxim
MFC after: 2 weeks
Diffstat (limited to 'usr.sbin/jexec')
-rw-r--r-- | usr.sbin/jexec/jexec.8 | 6 | ||||
-rw-r--r-- | usr.sbin/jexec/jexec.c | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/jexec/jexec.8 b/usr.sbin/jexec/jexec.8 index d325fbf..2df0f60 100644 --- a/usr.sbin/jexec/jexec.8 +++ b/usr.sbin/jexec/jexec.8 @@ -25,7 +25,7 @@ .\" .\" $FreeBSD$ .\" -.Dd April 19, 2006 +.Dd May 26, 2008 .Dt JEXEC 8 .Os .Sh NAME @@ -59,6 +59,10 @@ The user name from jailed environment as whom the .Ar command 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. .Sh SEE ALSO .Xr jail_attach 2 , .Xr jail 8 , diff --git a/usr.sbin/jexec/jexec.c b/usr.sbin/jexec/jexec.c index 75f005f..5b67da3 100644 --- a/usr.sbin/jexec/jexec.c +++ b/usr.sbin/jexec/jexec.c @@ -98,7 +98,7 @@ main(int argc, char *argv[]) jid = (int)strtol(argv[0], NULL, 10); if (jail_attach(jid) == -1) if (jail_attach(addr2jid(argv[0])) == -1) - errx(1, "jail_attach(): Cant convert %s to jid", argv[0]); + errx(1, "jail_attach(): Cannot convert %s to jid", argv[0]); if (chdir("/") == -1) err(1, "chdir(): /"); if (username != NULL) { |