summaryrefslogtreecommitdiffstats
path: root/usr.sbin/jail
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-05-05 19:23:45 +0000
committerphk <phk@FreeBSD.org>1999-05-05 19:23:45 +0000
commit16a5877732447857117321cb1c7e70f451d91c97 (patch)
treeb2f19555c928ef2bd5c5ac2fd838e07400792ea4 /usr.sbin/jail
parent307cd2910e7d32334faced8b2d60197c74917623 (diff)
downloadFreeBSD-src-16a5877732447857117321cb1c7e70f451d91c97.zip
FreeBSD-src-16a5877732447857117321cb1c7e70f451d91c97.tar.gz
Various cosmetics.
Submitted by: Rudolf Cejka <cejkar@dcse.fee.vutbr.cz> Reviewed by: phk
Diffstat (limited to 'usr.sbin/jail')
-rw-r--r--usr.sbin/jail/Makefile2
-rw-r--r--usr.sbin/jail/jail.88
-rw-r--r--usr.sbin/jail/jail.c7
3 files changed, 10 insertions, 7 deletions
diff --git a/usr.sbin/jail/Makefile b/usr.sbin/jail/Makefile
index 08f27b0..32c1dfd 100644
--- a/usr.sbin/jail/Makefile
+++ b/usr.sbin/jail/Makefile
@@ -1,4 +1,4 @@
-# $id$
+# $Id$
PROG= jail
MAN8= jail.8
diff --git a/usr.sbin/jail/jail.8 b/usr.sbin/jail/jail.8
index 0862770..1e03082 100644
--- a/usr.sbin/jail/jail.8
+++ b/usr.sbin/jail/jail.8
@@ -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
diff --git a/usr.sbin/jail/jail.c b/usr.sbin/jail/jail.c
index 7bd31ad..32de76d 100644
--- a/usr.sbin/jail/jail.c
+++ b/usr.sbin/jail/jail.c
@@ -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)
OpenPOWER on IntegriCloud