diff options
author | phk <phk@FreeBSD.org> | 1999-09-19 08:36:37 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-09-19 08:36:37 +0000 |
commit | b364262c2eaf35eea8405454f53263cd494036f2 (patch) | |
tree | 3fe7faeb7d55cb3e5a30ce6d54748ba5189c0de8 /usr.sbin/jail | |
parent | d879133e0bb16c1f86765e560f6cf9d3849328cc (diff) | |
download | FreeBSD-src-b364262c2eaf35eea8405454f53263cd494036f2.zip FreeBSD-src-b364262c2eaf35eea8405454f53263cd494036f2.tar.gz |
Add a version number field to the jail(2) argument so that future changes
can be handled intelligently.
WARNING: you will need to reinstall #includes and recompile jail(8).
Diffstat (limited to 'usr.sbin/jail')
-rw-r--r-- | usr.sbin/jail/jail.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/jail/jail.c b/usr.sbin/jail/jail.c index 413ac54..fc34990 100644 --- a/usr.sbin/jail/jail.c +++ b/usr.sbin/jail/jail.c @@ -29,6 +29,8 @@ main(int argc, char **argv) i = chdir(argv[1]); if (i) err(1, "chdir %s", argv[1]); + memset(&j, 0, sizeof(j)); + j.version = 0; j.path = argv[1]; j.hostname = argv[2]; i = inet_aton(argv[3], &in); |