diff options
author | phk <phk@FreeBSD.org> | 1999-05-04 18:20:53 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-05-04 18:20:53 +0000 |
commit | 592151ff9360b8e4ee79e512d69dd84bd934ec05 (patch) | |
tree | 4cde454df3a5e3947708fb1068add2be64cb81d9 /usr.sbin/jail | |
parent | 1d4a1667d40b46c18fd2a56bcaec0c8177350337 (diff) | |
download | FreeBSD-src-592151ff9360b8e4ee79e512d69dd84bd934ec05.zip FreeBSD-src-592151ff9360b8e4ee79e512d69dd84bd934ec05.tar.gz |
Fix various bogons.
Submitted by: Rudolf Cejka <cejkar@dcse.fee.vutbr.cz>
Reviewed by: phk
Diffstat (limited to 'usr.sbin/jail')
-rw-r--r-- | usr.sbin/jail/Makefile | 2 | ||||
-rw-r--r-- | usr.sbin/jail/jail.8 | 11 | ||||
-rw-r--r-- | usr.sbin/jail/jail.c | 14 |
3 files changed, 26 insertions, 1 deletions
diff --git a/usr.sbin/jail/Makefile b/usr.sbin/jail/Makefile index f90553d..08f27b0 100644 --- a/usr.sbin/jail/Makefile +++ b/usr.sbin/jail/Makefile @@ -1,3 +1,5 @@ +# $id$ + PROG= jail MAN8= jail.8 diff --git a/usr.sbin/jail/jail.8 b/usr.sbin/jail/jail.8 index e1108fa..0862770 100644 --- a/usr.sbin/jail/jail.8 +++ b/usr.sbin/jail/jail.8 @@ -1,3 +1,14 @@ +.\" +.\"---------------------------------------------------------------------------- +.\""THE BEER-WARE LICENSE" (Revision 42): +.\"<phk@FreeBSD.ORG> wrote this file. As long as you retain this notice you +.\"can do whatever you want with this stuff. If we meet some day, and you think +.\"this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp +.\"---------------------------------------------------------------------------- +.\" +.\"$Id$ +.\" +.\" .Dd April 28, 1999 .Dt JAIL 8 .Os FreeBSD 4.0 diff --git a/usr.sbin/jail/jail.c b/usr.sbin/jail/jail.c index 938c50b..7bd31ad 100644 --- a/usr.sbin/jail/jail.c +++ b/usr.sbin/jail/jail.c @@ -1,3 +1,15 @@ +/* + * ---------------------------------------------------------------------------- + * "THE BEER-WARE LICENSE" (Revision 42): + * <phk@FreeBSD.ORG> wrote this file. As long as you retain this notice you + * can do whatever you want with this stuff. If we meet some day, and you think + * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp + * ---------------------------------------------------------------------------- + * + * $Id$ + * + */ + #include <stdio.h> #include <err.h> #include <sys/types.h> @@ -21,7 +33,7 @@ main(int argc, char **argv) i = inet_aton(argv[3], &in); if (!i) errx(1, "Couldn't make sense if ip number\n"); - j.ip_number = in.s_addr; + j.ip_number = ntohl(in.s_addr); i = jail(&j); if (i) err(1, "Imprisonment failed"); |