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/jail.c | |
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/jail.c')
-rw-r--r-- | usr.sbin/jail/jail.c | 14 |
1 files changed, 13 insertions, 1 deletions
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"); |