Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/chmod Document "-f". From Andreas Wiese in PR bin/35409...



details:   https://anonhg.NetBSD.org/src/rev/0b80492cd868
branches:  trunk
changeset: 751021:0b80492cd868
user:      snj <snj%NetBSD.org@localhost>
date:      Fri Jan 22 05:41:36 2010 +0000

description:
Document "-f".  From Andreas Wiese in PR bin/35409, slightly modified.

diffstat:

 bin/chmod/chmod.1 |  10 +++++++---
 bin/chmod/chmod.c |   8 ++++----
 2 files changed, 11 insertions(+), 7 deletions(-)

diffs (74 lines):

diff -r 3ec1b6e3e784 -r 0b80492cd868 bin/chmod/chmod.1
--- a/bin/chmod/chmod.1 Fri Jan 22 03:42:47 2010 +0000
+++ b/bin/chmod/chmod.1 Fri Jan 22 05:41:36 2010 +0000
@@ -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
diff -r 3ec1b6e3e784 -r 0b80492cd868 bin/chmod/chmod.c
--- a/bin/chmod/chmod.c Fri Jan 22 03:42:47 2010 +0000
+++ b/bin/chmod/chmod.c Fri Jan 22 05:41:36 2010 +0000
@@ -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 */



Home | Main Index | Thread Index | Old Index