diff options
author | Chris Costello <chris@FreeBSD.org> | 1999-08-08 21:08:05 +0000 |
---|---|---|
committer | Chris Costello <chris@FreeBSD.org> | 1999-08-08 21:08:05 +0000 |
commit | 7007d55cc09ac6e78c8959007fedcfd025d63425 (patch) | |
tree | f57a186bd1d96656f383ea08ea75575cf7a1465d /bin/chmod | |
parent | 4cb4c215e57a812bb8bbc59c51ba1578ca0c7a55 (diff) | |
download | src-7007d55cc09ac6e78c8959007fedcfd025d63425.tar.gz src-7007d55cc09ac6e78c8959007fedcfd025d63425.zip |
Document -f flag:
-f Do not display a diagnostic message if chmod could not modify the
mode for file.
Notes
Notes:
svn path=/head/; revision=49544
Diffstat (limited to 'bin/chmod')
-rw-r--r-- | bin/chmod/chmod.1 | 8 | ||||
-rw-r--r-- | bin/chmod/chmod.c | 6 |
2 files changed, 10 insertions, 4 deletions
diff --git a/bin/chmod/chmod.1 b/bin/chmod/chmod.1 index 966aaabe8389..66aa0ccda80f 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 4e1712397888..0758c42319d0 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 <sys/types.h> @@ -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); } |