summaryrefslogtreecommitdiffstats
path: root/bin/chmod
diff options
context:
space:
mode:
authorchris <chris@FreeBSD.org>1999-08-08 21:08:05 +0000
committerchris <chris@FreeBSD.org>1999-08-08 21:08:05 +0000
commit5bc66261cab881ca039a2ba8e864480d1bcbf9ef (patch)
tree65c6a801745309ed4472c87b74e8d8ca84f41ff9 /bin/chmod
parent0c67d78c0dbeb20346e56e674d9875d6d0cec069 (diff)
downloadFreeBSD-src-5bc66261cab881ca039a2ba8e864480d1bcbf9ef.zip
FreeBSD-src-5bc66261cab881ca039a2ba8e864480d1bcbf9ef.tar.gz
Document -f flag:
-f Do not display a diagnostic message if chmod could not modify the mode for file.
Diffstat (limited to 'bin/chmod')
-rw-r--r--bin/chmod/chmod.18
-rw-r--r--bin/chmod/chmod.c6
2 files changed, 10 insertions, 4 deletions
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 <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);
}
OpenPOWER on IntegriCloud