summaryrefslogtreecommitdiffstats
path: root/usr.sbin/chown/chown.c
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>1997-09-04 11:55:45 +0000
committercharnier <charnier@FreeBSD.org>1997-09-04 11:55:45 +0000
commitd3d26f623e06be399c175d03b0c8f7493690bfc7 (patch)
tree74db6df627cdfd9048b1a74ac83874975167084b /usr.sbin/chown/chown.c
parent6047dd4c945dc2b42e4b7af4ba88dab4b1c9bfc3 (diff)
downloadFreeBSD-src-d3d26f623e06be399c175d03b0c8f7493690bfc7.zip
FreeBSD-src-d3d26f623e06be399c175d03b0c8f7493690bfc7.tar.gz
Cosmetic in man page. Sync usage() with man page.
Diffstat (limited to 'usr.sbin/chown/chown.c')
-rw-r--r--usr.sbin/chown/chown.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/chown/chown.c b/usr.sbin/chown/chown.c
index c7b171b..b3b7876 100644
--- a/usr.sbin/chown/chown.c
+++ b/usr.sbin/chown/chown.c
@@ -42,7 +42,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)chown.c 8.8 (Berkeley) 4/4/94";
#else
static const char rcsid[] =
- "$Id$";
+ "$Id: chown.c,v 1.7 1997/08/24 02:10:29 steve Exp $";
#endif
#endif /* not lint */
@@ -122,8 +122,7 @@ main(argc, argv)
fts_options = FTS_PHYSICAL;
if (Rflag) {
if (hflag)
- errx(1,
- "the -R and -h options may not be specified together.");
+ errx(1, "the -R and -h options may not be specified together");
if (Hflag)
fts_options |= FTS_COMFOLLOW;
if (Lflag) {
@@ -266,8 +265,9 @@ chownerr(file)
void
usage()
{
- (void)fprintf(stderr,
- "usage: %s [-R [-H | -L | -P]] [-f] [-h] %s file ...\n",
- myname, ischown ? "[owner][:group]" : "group");
+ (void)fprintf(stderr, "%s\n%s\n%s\n",
+ "usage: chown [-R [-H | -L | -P]] [-f] [-h] owner[:group] file ...",
+ " chown [-R [-H | -L | -P]] [-f] [-h] :group file ...",
+ " chgrp [-R [-H | -L | -P]] [-f] [-h] group file ...");
exit(1);
}
OpenPOWER on IntegriCloud