aboutsummaryrefslogtreecommitdiff
path: root/bin/chmod
diff options
context:
space:
mode:
authorPhilippe Charnier <charnier@FreeBSD.org>1998-05-06 06:51:42 +0000
committerPhilippe Charnier <charnier@FreeBSD.org>1998-05-06 06:51:42 +0000
commitcbf6f7d3584de28d976725bf3989eb9ca5baf3af (patch)
tree4285e9dc3ec49aef4d38cdfe544a26c14e399c7f /bin/chmod
parent4c95995fe073d4bf49b0dabd8e6725ae707a8eac (diff)
downloadsrc-cbf6f7d3584de28d976725bf3989eb9ca5baf3af.tar.gz
src-cbf6f7d3584de28d976725bf3989eb9ca5baf3af.zip
Correct use of .Nm and other cosmetics. Add rcsid. Remove unused #inc.
Notes
Notes: svn path=/head/; revision=35773
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 de38e1eba5f9..57a04694af54 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 6d61ca449aea..91c225275969 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>