diff options
author | Igor Sobrado <sobrado@cvs.openbsd.org> | 2009-01-21 16:05:40 +0000 |
---|---|---|
committer | Igor Sobrado <sobrado@cvs.openbsd.org> | 2009-01-21 16:05:40 +0000 |
commit | 3ed69621f49bbbb5fa559745a5634c42db070747 (patch) | |
tree | fa92da3a44a3c4ce4b9b235ef2bae4d60e3c956c /bin/chmod | |
parent | bc34584b4047cd3bf3747065e875d2a7d786b860 (diff) |
fix the synopsis for chown(8)
Diffstat (limited to 'bin/chmod')
-rw-r--r-- | bin/chmod/chmod.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/bin/chmod/chmod.c b/bin/chmod/chmod.c index fbe7f00f7b2..9fe51a1c3df 100644 --- a/bin/chmod/chmod.c +++ b/bin/chmod/chmod.c @@ -1,4 +1,4 @@ -/* $OpenBSD: chmod.c,v 1.23 2006/04/25 15:41:07 deraadt Exp $ */ +/* $OpenBSD: chmod.c,v 1.24 2009/01/21 16:05:39 sobrado Exp $ */ /* $NetBSD: chmod.c,v 1.12 1995/03/21 09:02:09 cgd Exp $ */ /* @@ -40,7 +40,7 @@ static const char copyright[] = #if 0 static char sccsid[] = "@(#)chmod.c 8.8 (Berkeley) 4/1/94"; #else -static const char rcsid[] = "$OpenBSD: chmod.c,v 1.23 2006/04/25 15:41:07 deraadt Exp $"; +static const char rcsid[] = "$OpenBSD: chmod.c,v 1.24 2009/01/21 16:05:39 sobrado Exp $"; #endif #endif /* not lint */ @@ -351,6 +351,10 @@ usage(void) else fprintf(stderr, "usage: %s [-fh] [-R [-H | -L | -P]] %s file ...\n", - __progname, ischown ? "[owner][:group]" : "group"); + __progname, ischown ? "owner[:group]" : "group"); + if (ischown) + fprintf(stderr, + " %s [-fh] [-R [-H | -L | -P]] :group file ...\n", + __progname); exit(1); } |