summaryrefslogtreecommitdiffstats
path: root/bin/chmod
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>1998-05-06 06:51:42 +0000
committercharnier <charnier@FreeBSD.org>1998-05-06 06:51:42 +0000
commitc4d26d7f835032c231da4c6219c73b2679691222 (patch)
treea83653b0a70dcb5e787512cfa4954591689bf876 /bin/chmod
parent32338c8e0512ee1c5643fd65a793a21fabadfcfa (diff)
downloadFreeBSD-src-c4d26d7f835032c231da4c6219c73b2679691222.zip
FreeBSD-src-c4d26d7f835032c231da4c6219c73b2679691222.tar.gz
Correct use of .Nm and other cosmetics. Add rcsid. Remove unused #inc.
Diffstat (limited to 'bin/chmod')
-rw-r--r--bin/chmod/chmod.110
-rw-r--r--bin/chmod/chmod.c7
2 files changed, 9 insertions, 8 deletions
diff --git a/bin/chmod/chmod.1 b/bin/chmod/chmod.1
index de38e1e..57a0469 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.7 1997/02/22 14:01:29 peter Exp $
+.\" $Id: chmod.1,v 1.8 1997/11/13 00:28:47 julian Exp $
.\"
.Dd March 31, 1994
.Dt CHMOD 1
@@ -51,7 +51,7 @@
.Ar file ...
.Sh DESCRIPTION
The
-.Nm chmod
+.Nm
utility modifies the file mode bits of the listed files
as specified by the
.Ar mode
@@ -82,7 +82,7 @@ Symbolic links do not have modes, so unless the
or
.Fl L
option is set,
-.Nm chmod
+.Nm
on a symbolic link always succeeds and has no effect.
The
.Fl H ,
@@ -99,7 +99,7 @@ Only the owner of a file or the super-user is permitted to change
the mode of a file.
.Pp
The
-.Nm chmod
+.Nm
utility exits 0 on success, and >0 if an error occurs.
.Sh MODES
Modes may be absolute or symbolic.
@@ -289,7 +289,7 @@ option for the naughty bits.
.Xr chown 8
.Sh STANDARDS
The
-.Nm chmod
+.Nm
utility is expected to be
.St -p1003.2
compatible with the exception of the
diff --git a/bin/chmod/chmod.c b/bin/chmod/chmod.c
index 6d61ca4..91c2252 100644
--- a/bin/chmod/chmod.c
+++ b/bin/chmod/chmod.c
@@ -29,8 +29,6 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
- * $Id: chmod.c,v 1.8 1997/02/22 14:01:30 peter Exp $
*/
#ifndef lint
@@ -40,10 +38,13 @@ static char const copyright[] =
#endif /* not lint */
#ifndef lint
+#if 0
static char const sccsid[] = "@(#)chmod.c 8.8 (Berkeley) 4/1/94";
+#endif
+static const char rcsid[] =
+ "$Id$";
#endif /* not lint */
-#include <sys/types.h>
#include <sys/stat.h>
#include <err.h>
OpenPOWER on IntegriCloud