This commit is contained in:
lukem 1997-10-18 04:06:28 +00:00
parent 61f747bdbc
commit acbb568349
2 changed files with 13 additions and 9 deletions

View File

@ -30,7 +30,7 @@
.\" SUCH DAMAGE. .\" SUCH DAMAGE.
.\" .\"
.\" from: @(#)chroot.8 8.1 (Berkeley) 6/9/93 .\" from: @(#)chroot.8 8.1 (Berkeley) 6/9/93
.\" $NetBSD: chroot.8,v 1.4 1997/06/22 08:26:10 lukem Exp $ .\" $NetBSD: chroot.8,v 1.5 1997/10/18 04:06:28 lukem Exp $
.\" .\"
.Dd June 9, 1993 .Dd June 9, 1993
.Dt CHROOT 8 .Dt CHROOT 8
@ -39,7 +39,7 @@
.Nm chroot .Nm chroot
.Nd change root directory .Nd change root directory
.Sh SYNOPSIS .Sh SYNOPSIS
.Nm chroot .Nm
.Ar newroot .Ar newroot
.Op Ar command .Op Ar command
.Sh DESCRIPTION .Sh DESCRIPTION
@ -56,7 +56,7 @@ Note,
or the shell are run as your real-user-id. or the shell are run as your real-user-id.
.Sh ENVIRONMENT .Sh ENVIRONMENT
The following environment variable is referenced by The following environment variable is referenced by
.Nm chroot : .Nm "" :
.Bl -tag -width SHELL .Bl -tag -width SHELL
.It Ev SHELL .It Ev SHELL
If set, If set,

View File

@ -31,15 +31,18 @@
* SUCH DAMAGE. * SUCH DAMAGE.
*/ */
#include <sys/cdefs.h>
#ifndef lint #ifndef lint
static char copyright[] = __COPYRIGHT("@(#) Copyright (c) 1988, 1993\n\
"@(#) Copyright (c) 1988, 1993\n\ The Regents of the University of California. All rights reserved.\n");
The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */ #endif /* not lint */
#ifndef lint #ifndef lint
/* static char sccsid[] = "@(#)chroot.c 8.1 (Berkeley) 6/9/93"; */ #if 0
static char rcsid[] = "$NetBSD: chroot.c,v 1.5 1997/03/06 07:00:52 mikel Exp $"; static char sccsid[] = "@(#)chroot.c 8.1 (Berkeley) 6/9/93";
#else
__RCSID("$NetBSD: chroot.c,v 1.6 1997/10/18 04:06:32 lukem Exp $");
#endif
#endif /* not lint */ #endif /* not lint */
#include <sys/types.h> #include <sys/types.h>
@ -52,6 +55,7 @@ static char rcsid[] = "$NetBSD: chroot.c,v 1.5 1997/03/06 07:00:52 mikel Exp $";
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
int main __P((int, char **));
void usage __P((void)); void usage __P((void));
int int