From 5bc66261cab881ca039a2ba8e864480d1bcbf9ef Mon Sep 17 00:00:00 2001 From: chris Date: Sun, 8 Aug 1999 21:08:05 +0000 Subject: Document -f flag: -f Do not display a diagnostic message if chmod could not modify the mode for file. --- bin/chmod/chmod.1 | 8 +++++++- bin/chmod/chmod.c | 6 +++--- 2 files changed, 10 insertions(+), 4 deletions(-) (limited to 'bin/chmod') diff --git a/bin/chmod/chmod.1 b/bin/chmod/chmod.1 index 966aaab..66aa0cc 100644 --- a/bin/chmod/chmod.1 +++ b/bin/chmod/chmod.1 @@ -33,7 +33,7 @@ .\" SUCH DAMAGE. .\" .\" @(#)chmod.1 8.4 (Berkeley) 3/31/94 -.\" $Id: chmod.1,v 1.10 1998/05/19 06:24:50 jkoshy Exp $ +.\" $Id: chmod.1,v 1.11 1999/05/08 10:19:20 kris Exp $ .\" .Dd March 31, 1994 .Dt CHMOD 1 @@ -44,6 +44,7 @@ .Sh SYNOPSIS .Nm chmod .Oo +.Fl f .Fl R .Op Fl H | Fl L | Fl P .Oc @@ -75,6 +76,11 @@ option is specified, no symbolic links are followed. .It Fl R Change the modes of the file hierarchies rooted in the files instead of just the files themselves. +.It Fl f +Do not display a diagnostic message if +.Nm +could not modify the mode for +.Va file . .El .Pp Symbolic links do not have modes, so unless the diff --git a/bin/chmod/chmod.c b/bin/chmod/chmod.c index 4e17123..0758c42 100644 --- a/bin/chmod/chmod.c +++ b/bin/chmod/chmod.c @@ -42,7 +42,7 @@ static char const copyright[] = static char sccsid[] = "@(#)chmod.c 8.8 (Berkeley) 4/1/94"; #endif static const char rcsid[] = - "$Id: chmod.c,v 1.11 1998/05/13 07:22:11 charnier Exp $"; + "$Id: chmod.c,v 1.12 1998/12/16 04:42:00 imp Exp $"; #endif /* not lint */ #include @@ -92,7 +92,7 @@ main(argc, argv) case 'R': Rflag = 1; break; - case 'f': /* XXX: undocumented. */ + case 'f': fflag = 1; break; case 'h': @@ -203,6 +203,6 @@ void usage() { (void)fprintf(stderr, - "usage: chmod [-R [-H | -L | -P]] mode file ...\n"); + "usage: chmod [-f -R [-H | -L | -P]] mode file ...\n"); exit(1); } -- cgit v1.1