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
This commit is contained in:
mr 2008-05-26 19:24:45 +00:00
parent 1501f1e5dd
commit 490bec4936
2 changed files with 6 additions and 2 deletions

View File

@ -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 ,

View File

@ -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) {