History log of /freebsd-current/usr.sbin/chkgrp/chkgrp.c
Revision Date Author Comments
# e738085b 17-Aug-2023 Dag-Erling Smørgrav <des@FreeBSD.org>

Remove my middle name.


# 1d386b48 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


# 1de7b4b8 27-Nov-2017 Pedro F. Giffuni <pfg@FreeBSD.org>

various: general adoption of SPDX licensing ID tags.

Mainly focus on files that use BSD 2-Clause license, however the tool I
was using misidentified many licenses so this was mostly a manual - error
prone - task.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

No functional change intended.


# f2164ae0 01-Aug-2015 Baptiste Daroussin <bapt@FreeBSD.org>

Revert r286148


# f4e060d0 01-Aug-2015 Baptiste Daroussin <bapt@FreeBSD.org>

Handle +:*:: the same way we handle +::: when checking group file

The first is what the documentation recommands for NIS client


# e622418c 01-Aug-2015 Baptiste Daroussin <bapt@FreeBSD.org>

Use strtoumax instead of strtoul


# cc13f05d 14-Dec-2014 Dag-Erling Smørgrav <des@FreeBSD.org>

Clean up, reindent, add a special case for NIS / LDAP line

MFC after: 1 week


# c7cdc97f 15-Nov-2012 Eitan Adler <eadler@FreeBSD.org>

This wasn't supposed to be in there - I committed the wrong patch.

Approved by: cperciva (implicit)


# ce643be1 15-Nov-2012 Eitan Adler <eadler@FreeBSD.org>

Add support for a -q flag. While here make the custom argument parsing
use getopt instead of hacking on it more. This change also fixes the
method of silencing the compiler warning about gfn being used
uninitialized.

Approved by: cperciva
MFC after: 1 week


# c71c7ce7 15-Nov-2012 Eitan Adler <eadler@FreeBSD.org>

Be declarative about if an error has occured.

Fixes overflow on very large group files with lots of errors. This is
unlikely to occur in practice.

Approved by: cperciva
MFC after: 1 week


# 93b4da8a 15-Nov-2012 Eitan Adler <eadler@FreeBSD.org>

Fix error code if file isn't readable.

Approved by: cperciva
MFC after: 1 week


# 2ad87454 15-Nov-2012 Eitan Adler <eadler@FreeBSD.org>

Check the range of the gid

Approved by: cperciva
MFC after: 1 week


# f76b3199 29-Dec-2011 Ulrich Spörlein <uqs@FreeBSD.org>

Reencode files to UTF-8. Drop CP1252 em-dash.


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# a2c16fbc 25-Aug-2005 Colin Percival <cperciva@FreeBSD.org>

Fix a bug introduced in revision 1.9 which causes chkgrp to coredump on
certain corrupt files.

Submitted by: liamfoy@dragonflybsd.org
Reported by: Nikolay Kalev, via freebsd-current
MFC after: 3 days


# 65530690 03-Aug-2005 Ollivier Robert <roberto@FreeBSD.org>

The check for invalid characters introduced in 1.9 incorrectly
flags NIS entries as invalid.

MFC6 candidate

Submitted by: Bob Willcox <bob@immure.com>
PR: bin/82325 (but I used the patch from Bob).


# 41b27a91 26-May-2005 Ollivier Robert <roberto@FreeBSD.org>

- Add further functionality to check for invalid characters
- Remove keyword 'continue' for more indepth error reporting
on each line
- WARNS 6 Clean

Submitted by: Liam J. Foy <liamfoy@dragonflybsd.org>
MFC after: 1 week


# f02cd7c7 06-Jun-2003 Peter Pentchev <roam@FreeBSD.org>

Warn if there is no newline at the end of the group file.

PR: 51256
Submitted by: Brian D Gallaway <bdg730@makserver0.usask.ca>
Reviewed by: tjr, -audit
Approved by: tjr


# b728350e 03-May-2003 David E. O'Brien <obrien@FreeBSD.org>

Use __FBSDID over rcsid[]. Protect copyright[] where needed.


# 9c7ef644 03-Jul-2001 Matt Jacob <mjacob@FreeBSD.org>

Use correct type of argument to fgetln.

MFC after: 1 week


# 0afcb087 23-Jun-2001 Dag-Erling Smørgrav <des@FreeBSD.org>

Constify, staticize and add a missing include; add WARNS?=2.

Submitted by: Mike Barcroft <mike@q9media.com>
MFC after: 2 weeks


# 7f69f4fd 28-May-2000 Philippe Charnier <charnier@FreeBSD.org>

match prototype


# 97d92980 27-Aug-1999 Peter Wemm <peter@FreeBSD.org>

$Id$ -> $FreeBSD$


# 068f8619 27-May-1998 Dag-Erling Smørgrav <des@FreeBSD.org>

Typo police. '#ifndef lint' around CVS id. Don't use __progname in usage().

Submitted by: Philippe Charnier <charnier@xp11.frmug.org>


# 83bc6a11 24-May-1998 Dag-Erling Smørgrav <des@FreeBSD.org>

Add chkgrp, a small utility for checking for syntax errors in group
files.

PR: bin/1387
Suggested-by: Giles Lean <giles@nemeton.com