Various cosmetics.

Submitted by:	Rudolf Cejka <cejkar@dcse.fee.vutbr.cz>
Reviewed by:	phk
This commit is contained in:
Poul-Henning Kamp 1999-05-05 19:23:45 +00:00
parent 86fc822ada
commit c020621f03
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=46520
3 changed files with 10 additions and 7 deletions

View file

@ -1,4 +1,4 @@
# $id$
# $Id$
PROG= jail
MAN8= jail.8

View file

@ -6,7 +6,7 @@
.\"this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
.\"----------------------------------------------------------------------------
.\"
.\"$Id$
.\"$Id: jail.8,v 1.2 1999/05/04 18:20:53 phk Exp $
.\"
.\"
.Dd April 28, 1999
@ -14,12 +14,14 @@
.Os FreeBSD 4.0
.Sh NAME
.Nm jail
.Nd imprison process and decendants.
.Nd imprison process and its descendants
.Sh SYNOPSIS
.Nm jail
.Ar path
.Ar hostname
.Ar ip-number
.Ar command
.Ar ...
.Sh DESCRIPTION
The
.Nm
@ -27,7 +29,7 @@ command imprisons a process and all future decendants.
.Pp
Please see the
.Xr jail 2
Manual page for further details.
man page for further details.
.Sh SEE ALSO
.Xr chroot 2 ,
.Xr jail 2

View file

@ -6,7 +6,7 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
* $Id$
* $Id: jail.c,v 1.2 1999/05/04 18:20:53 phk Exp $
*
*/
@ -24,7 +24,8 @@ main(int argc, char **argv)
struct in_addr in;
if (argc < 5)
errx(1, "Usage: %s path hostname ip command ...\n", argv[0]);
errx(1, "Usage: %s path hostname ip-number command ...\n",
argv[0]);
i = chdir(argv[1]);
if (i)
err(1, "chdir %s", argv[1]);
@ -32,7 +33,7 @@ main(int argc, char **argv)
j.hostname = argv[2];
i = inet_aton(argv[3], &in);
if (!i)
errx(1, "Couldn't make sense if ip number\n");
errx(1, "Couldn't make sense of ip-number\n");
j.ip_number = ntohl(in.s_addr);
i = jail(&j);
if (i)