diff options
| author | Philippe Charnier <charnier@FreeBSD.org> | 1997-09-15 06:32:01 +0000 |
|---|---|---|
| committer | Philippe Charnier <charnier@FreeBSD.org> | 1997-09-15 06:32:01 +0000 |
| commit | 14b374a5c4508c558b1fc3ea2c4a2ef2648ac0c1 (patch) | |
| tree | 28782a979eeba948f5869f6b6f9ca379fc1dd133 /usr.sbin/chroot | |
| parent | 825cbd5821bb55e0f193b0b978da68710127f0c9 (diff) | |
Notes
Diffstat (limited to 'usr.sbin/chroot')
| -rw-r--r-- | usr.sbin/chroot/chroot.8 | 4 | ||||
| -rw-r--r-- | usr.sbin/chroot/chroot.c | 11 |
2 files changed, 9 insertions, 6 deletions
diff --git a/usr.sbin/chroot/chroot.8 b/usr.sbin/chroot/chroot.8 index cf770683f6f0..607cfe3955bb 100644 --- a/usr.sbin/chroot/chroot.8 +++ b/usr.sbin/chroot/chroot.8 @@ -43,7 +43,7 @@ .Op Ar command .Sh DESCRIPTION The -.Nm chroot +.Nm command changes its root directory to the supplied directory .Ar newroot and exec's @@ -75,6 +75,6 @@ is used. .Xr environ 7 .Sh HISTORY The -.Nm chroot +.Nm utility first appeared in .Bx 4.4 . diff --git a/usr.sbin/chroot/chroot.c b/usr.sbin/chroot/chroot.c index db60a34835d9..4049c6c09db5 100644 --- a/usr.sbin/chroot/chroot.c +++ b/usr.sbin/chroot/chroot.c @@ -32,26 +32,29 @@ */ #ifndef lint -static char copyright[] = +static const char copyright[] = "@(#) Copyright (c) 1988, 1993\n\ The Regents of the University of California. All rights reserved.\n"; #endif /* not lint */ #ifndef lint +#if 0 static char sccsid[] = "@(#)chroot.c 8.1 (Berkeley) 6/9/93"; +#endif +static const char rcsid[] = + "$Id$"; #endif /* not lint */ #include <sys/types.h> #include <err.h> -#include <errno.h> #include <paths.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> -void usage __P((void)); +static void usage __P((void)); int main(argc, argv) @@ -88,7 +91,7 @@ main(argc, argv) /* NOTREACHED */ } -void +static void usage() { (void)fprintf(stderr, "usage: chroot newroot [command]\n"); |
