Typo police. '#ifndef lint' around CVS id. Don't use __progname in usage().
Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
.\" notice, this list of conditions and the following disclaimer in the
|
.\" notice, this list of conditions and the following disclaimer in the
|
||||||
.\" documentation and/or other materials provided with the distribution.
|
.\" documentation and/or other materials provided with the distribution.
|
||||||
.\" 3. The name of the author may not be used to endorse or promote products
|
.\" 3. The name of the author may not be used to endorse or promote products
|
||||||
.\" derived from this software withough specific prior written permission
|
.\" derived from this software without specific prior written permission
|
||||||
.\"
|
.\"
|
||||||
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
||||||
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
.\"
|
.\"
|
||||||
.\" $Id$
|
.\" $Id: chkgrp.8,v 1.1 1998/05/24 15:09:22 des Exp $
|
||||||
.\"
|
.\"
|
||||||
.Dd May 5, 1998
|
.Dd May 5, 1998
|
||||||
.Dt CHKGRP 8
|
.Dt CHKGRP 8
|
||||||
@@ -47,8 +47,8 @@ numeric.
|
|||||||
.Xr group 5
|
.Xr group 5
|
||||||
.Sh DIAGNOSTICS
|
.Sh DIAGNOSTICS
|
||||||
For each error found,
|
For each error found,
|
||||||
.Nm chkgrp
|
.Nm
|
||||||
will print an error message containins the name of the file being
|
will print an error message containing the name of the file being
|
||||||
scanned and the line number on which the error was found. Otherwise no
|
scanned and the line number on which the error was found. Otherwise no
|
||||||
output is produced.
|
output is produced.
|
||||||
.Pp
|
.Pp
|
||||||
@@ -59,12 +59,11 @@ otherwise.
|
|||||||
The
|
The
|
||||||
.Nm
|
.Nm
|
||||||
command appeared in
|
command appeared in
|
||||||
.Tn FreeBSD
|
.Fx 3.0
|
||||||
3.0
|
|
||||||
.Sh AUTHORS
|
.Sh AUTHORS
|
||||||
.Nm Chkgrp
|
.Nm Chkgrp
|
||||||
and this manual page were written by
|
and this manual page were written by
|
||||||
.An Dag-Erling Coïdan Smørgav Aq des@FreeBSD.ORG .
|
.An Dag-Erling Coïdan Smørgav Aq des@FreeBSD.org .
|
||||||
.Sh BUGS
|
.Sh BUGS
|
||||||
Should check fields more thoroughly for allowed / disallowed
|
Should check fields more thoroughly for allowed / disallowed
|
||||||
characters, and the range of the group ID.
|
characters, and the range of the group ID.
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
* notice, this list of conditions and the following disclaimer in the
|
* notice, this list of conditions and the following disclaimer in the
|
||||||
* documentation and/or other materials provided with the distribution.
|
* documentation and/or other materials provided with the distribution.
|
||||||
* 3. The name of the author may not be used to endorse or promote products
|
* 3. The name of the author may not be used to endorse or promote products
|
||||||
* derived from this software withough specific prior written permission
|
* derived from this software without specific prior written permission
|
||||||
*
|
*
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
||||||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||||
@@ -24,25 +24,23 @@
|
|||||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*
|
|
||||||
* $Id$
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static const char CVSID[] = "$Id$";
|
#ifndef lint
|
||||||
|
static const char rcsid[] =
|
||||||
|
"$Id$";
|
||||||
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <err.h>
|
#include <err.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sysexits.h>
|
#include <sysexits.h>
|
||||||
|
|
||||||
extern char *__progname;
|
|
||||||
|
|
||||||
void
|
void
|
||||||
usage(void)
|
usage(void)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "usage: %s [groupfile]\n", __progname);
|
fprintf(stderr, "usage: chkgrp [groupfile]\n");
|
||||||
exit(EX_USAGE);
|
exit(EX_USAGE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user