diff options
-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"); |