aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/chkgrp/chkgrp.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-231-2/+0
| | | | | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/ Similar commit in main: (cherry picked from commit 1d386b48a555)
* various: general adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
| | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=326276
* Revert r286148Baptiste Daroussin2015-08-011-2/+2
| | | | Notes: svn path=/head/; revision=286153
* Handle +:*:: the same way we handle +::: when checking group fileBaptiste Daroussin2015-08-011-1/+2
| | | | | | | The first is what the documentation recommands for NIS client Notes: svn path=/head/; revision=286149
* Use strtoumax instead of strtoulBaptiste Daroussin2015-08-011-2/+3
| | | | Notes: svn path=/head/; revision=286148
* Clean up, reindent, add a special case for NIS / LDAP lineDag-Erling Smørgrav2014-12-141-129/+127
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=275765
* This wasn't supposed to be in there - I committed the wrong patch.Eitan Adler2012-11-151-1/+0
| | | | | | | Approved by: cperciva (implicit) Notes: svn path=/head/; revision=243085
* Add support for a -q flag. While here make the custom argument parsingEitan Adler2012-11-151-13/+23
| | | | | | | | | | | | 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 Notes: svn path=/head/; revision=243084
* Be declarative about if an error has occured.Eitan Adler2012-11-151-8/+8
| | | | | | | | | | | 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 Notes: svn path=/head/; revision=243083
* Fix error code if file isn't readable.Eitan Adler2012-11-151-1/+1
| | | | | | | | Approved by: cperciva MFC after: 1 week Notes: svn path=/head/; revision=243077
* Check the range of the gidEitan Adler2012-11-151-0/+15
| | | | | | | | Approved by: cperciva MFC after: 1 week Notes: svn path=/head/; revision=243076
* Reencode files to UTF-8. Drop CP1252 em-dash.Ulrich Spörlein2011-12-301-1/+1
| | | | Notes: svn path=/head/; revision=228976
* Fix a bug introduced in revision 1.9 which causes chkgrp to coredump onColin Percival2005-08-251-5/+9
| | | | | | | | | | | certain corrupt files. Submitted by: liamfoy@dragonflybsd.org Reported by: Nikolay Kalev, via freebsd-current MFC after: 3 days Notes: svn path=/head/; revision=149463
* The check for invalid characters introduced in 1.9 incorrectlyOllivier Robert2005-08-041-1/+2
| | | | | | | | | | | | flags NIS entries as invalid. MFC6 candidate Submitted by: Bob Willcox <bob@immure.com> PR: bin/82325 (but I used the patch from Bob). Notes: svn path=/head/; revision=148695
* - Add further functionality to check for invalid charactersOllivier Robert2005-05-261-6/+24
| | | | | | | | | | | | - 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 Notes: svn path=/head/; revision=146641
* Warn if there is no newline at the end of the group file.Peter Pentchev2003-06-061-0/+4
| | | | | | | | | | PR: 51256 Submitted by: Brian D Gallaway <bdg730@makserver0.usask.ca> Reviewed by: tjr, -audit Approved by: tjr Notes: svn path=/head/; revision=115891
* Use __FBSDID over rcsid[]. Protect copyright[] where needed.David E. O'Brien2003-05-031-4/+2
| | | | Notes: svn path=/head/; revision=114601
* Use correct type of argument to fgetln.Matt Jacob2001-07-031-1/+2
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=79160
* Constify, staticize and add a missing include; add WARNS?=2.Dag-Erling Smørgrav2001-06-241-4/+6
| | | | | | | | Submitted by: Mike Barcroft <mike@q9media.com> MFC after: 2 weeks Notes: svn path=/head/; revision=78700
* match prototypePhilippe Charnier2000-05-281-1/+1
| | | | Notes: svn path=/head/; revision=61019
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50479
* Typo police. '#ifndef lint' around CVS id. Don't use __progname in usage().Dag-Erling Smørgrav1998-05-271-8/+6
| | | | | | | Submitted by: Philippe Charnier <charnier@xp11.frmug.org> Notes: svn path=/head/; revision=36416
* Add chkgrp, a small utility for checking for syntax errors in groupDag-Erling Smørgrav1998-05-241-0/+143
files. PR: bin/1387 Suggested-by: Giles Lean <giles@nemeton.com Notes: svn path=/head/; revision=36332