Document -f flag:
-f Do not display a diagnostic message if chmod could not modify the mode for file.
This commit is contained in:
parent
4cb4c215e5
commit
7007d55cc0
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user