Module Name: src
Committed By: snj
Date: Fri Jan 22 05:41:36 UTC 2010
Modified Files:
src/bin/chmod: chmod.1 chmod.c
Log Message:
Document "-f". From Andreas Wiese in PR bin/35409, slightly modified.
To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/bin/chmod/chmod.1
cvs rdiff -u -r1.34 -r1.35 src/bin/chmod/chmod.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/bin/chmod/chmod.1
diff -u src/bin/chmod/chmod.1:1.22 src/bin/chmod/chmod.1:1.23
--- src/bin/chmod/chmod.1:1.22 Tue Mar 24 00:10:58 2009
+++ src/bin/chmod/chmod.1 Fri Jan 22 05:41:36 2010
@@ -1,4 +1,4 @@
-.\" $NetBSD: chmod.1,v 1.22 2009/03/24 00:10:58 joerg Exp $
+.\" $NetBSD: chmod.1,v 1.23 2010/01/22 05:41:36 snj Exp $
.\"
.\" Copyright (c) 1989, 1990, 1993, 1994
.\" The Regents of the University of California. All rights reserved.
@@ -32,7 +32,7 @@
.\"
.\" @(#)chmod.1 8.4 (Berkeley) 3/31/94
.\"
-.Dd December 9, 2005
+.Dd January 22, 2010
.Dt CHMOD 1
.Os
.Sh NAME
@@ -44,7 +44,7 @@
.Fl R
.Op Fl H | Fl L | Fl P
.Oc
-.Op Fl h
+.Op Fl fh
.Ar mode
.Ar
.Sh DESCRIPTION
@@ -73,6 +73,10 @@
.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 or modify the exit status if
+.Nm
+fails to change the mode of a file.
.It Fl h
If
.Ar file
Index: src/bin/chmod/chmod.c
diff -u src/bin/chmod/chmod.c:1.34 src/bin/chmod/chmod.c:1.35
--- src/bin/chmod/chmod.c:1.34 Sun Jul 20 00:52:39 2008
+++ src/bin/chmod/chmod.c Fri Jan 22 05:41:36 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: chmod.c,v 1.34 2008/07/20 00:52:39 lukem Exp $ */
+/* $NetBSD: chmod.c,v 1.35 2010/01/22 05:41:36 snj Exp $ */
/*
* Copyright (c) 1989, 1993, 1994
@@ -40,7 +40,7 @@
#if 0
static char sccsid[] = "@(#)chmod.c 8.8 (Berkeley) 4/1/94";
#else
-__RCSID("$NetBSD: chmod.c,v 1.34 2008/07/20 00:52:39 lukem Exp $");
+__RCSID("$NetBSD: chmod.c,v 1.35 2010/01/22 05:41:36 snj Exp $");
#endif
#endif /* not lint */
@@ -91,7 +91,7 @@
case 'R':
Rflag = 1;
break;
- case 'f': /* XXX: undocumented. */
+ case 'f':
fflag = 1;
break;
case 'h':
@@ -207,7 +207,7 @@
usage(void)
{
(void)fprintf(stderr,
- "usage: %s [-R [-H | -L | -P]] [-h] mode file ...\n",
+ "usage: %s [-R [-H | -L | -P]] [-fh] mode file ...\n",
getprogname());
exit(1);
/* NOTREACHED */