From 490bec4936eee1d25f030e553669f380aaf07898 Mon Sep 17 00:00:00 2001 From: mr Date: Mon, 26 May 2008 19:24:45 +0000 Subject: 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 --- usr.sbin/jexec/jexec.8 | 6 +++++- usr.sbin/jexec/jexec.c | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'usr.sbin/jexec') 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) { -- cgit v1.1