summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>1999-11-21 16:11:56 +0000
committercharnier <charnier@FreeBSD.org>1999-11-21 16:11:56 +0000
commitd09776075b30af9572566b18a6ec882ff363cc32 (patch)
tree67759e9292d39ce1006937690e2717ae297a5741 /usr.bin
parentf755cb92d83f6c27706d2a8981f10bc189720ec2 (diff)
downloadFreeBSD-src-d09776075b30af9572566b18a6ec882ff363cc32.zip
FreeBSD-src-d09776075b30af9572566b18a6ec882ff363cc32.tar.gz
Correct use of .Nm. Add DIAGNOSTICS section. Add rcsid
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/chflags/chflags.114
-rw-r--r--usr.bin/chflags/chflags.c6
2 files changed, 12 insertions, 8 deletions
diff --git a/usr.bin/chflags/chflags.1 b/usr.bin/chflags/chflags.1
index d6b64be..a76f8c2 100644
--- a/usr.bin/chflags/chflags.1
+++ b/usr.bin/chflags/chflags.1
@@ -48,17 +48,17 @@
.Op Fl H | Fl L | Fl P
.Oc
.Ar flags
-.Ar file ...
+.Ar
.Sh DESCRIPTION
The
-.Nm chflags
+.Nm
utility modifies the file flags of the listed files
as specified by the
.Ar flags
operand.
.Pp
The options are as follows:
-.Bl -tag -width Ds
+.Bl -tag -width indent
.It Fl H
If the
.Fl R
@@ -107,7 +107,7 @@ Symbolic links do not have flags, so unless the
or
.Fl L
option is set,
-.Nm chflags
+.Nm
on a symbolic link always succeeds and has no effect.
The
.Fl H ,
@@ -121,9 +121,9 @@ In addition, these options override each other and the
command's actions are determined by the last one specified.
.Pp
You can use "ls -lo" to see the flags of existing files.
-.Pp
+.Sh DIAGNOSTICS
The
-.Nm chflags
+.Nm
utility exits 0 on success, and >0 if an error occurs.
.Sh SEE ALSO
.Xr ls 1 ,
@@ -133,6 +133,6 @@ utility exits 0 on success, and >0 if an error occurs.
.Xr symlink 7
.Sh HISTORY
The
-.Nm chflags
+.Nm
command first appeared in
.Bx 4.4 .
diff --git a/usr.bin/chflags/chflags.c b/usr.bin/chflags/chflags.c
index 6646094..2f4a96e 100644
--- a/usr.bin/chflags/chflags.c
+++ b/usr.bin/chflags/chflags.c
@@ -38,7 +38,11 @@ static const char copyright[] =
#endif /* not lint */
#ifndef lint
-static const char sccsid[] = "@(#)chflags.c 8.5 (Berkeley) 4/1/94";
+#if 0
+static char sccsid[] = "@(#)chflags.c 8.5 (Berkeley) 4/1/94";
+#endif
+static const char rcsid[] =
+ "$FreeBSD$";
#endif /* not lint */
#include <sys/types.h>
OpenPOWER on IntegriCloud