Eitan Adler
c7cdc97f53
This wasn't supposed to be in there - I committed the wrong patch.
...
Approved by: cperciva (implicit)
2012-11-15 15:21:58 +00:00
Eitan Adler
ce643be1ab
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
2012-11-15 15:16:50 +00:00
Eitan Adler
c71c7ce71a
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
2012-11-15 15:06:24 +00:00
Eitan Adler
93b4da8a2a
Fix error code if file isn't readable.
...
Approved by: cperciva
MFC after: 1 week
2012-11-15 15:06:06 +00:00
Eitan Adler
2ad87454e2
Check the range of the gid
...
Approved by: cperciva
MFC after: 1 week
2012-11-15 15:06:03 +00:00
Ulrich Spörlein
f76b319989
Reencode files to UTF-8. Drop CP1252 em-dash.
2011-12-30 00:59:08 +00:00
Colin Percival
a2c16fbcd0
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
2005-08-25 17:01:06 +00:00
Ollivier Robert
6553069018
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).
2005-08-04 12:44:36 +00:00
Ollivier Robert
41b27a91a9
- 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
2005-05-26 10:57:03 +00:00
Peter Pentchev
f02cd7c7d0
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
2003-06-06 07:10:39 +00:00
David E. O'Brien
b728350ee6
Use __FBSDID over rcsid[]. Protect copyright[] where needed.
2003-05-03 21:06:42 +00:00
Matt Jacob
9c7ef644aa
Use correct type of argument to fgetln.
...
MFC after: 1 week
2001-07-03 21:40:34 +00:00
Dag-Erling Smørgrav
0afcb0871d
Constify, staticize and add a missing include; add WARNS?=2.
...
Submitted by: Mike Barcroft <mike@q9media.com>
MFC after: 2 weeks
2001-06-24 12:38:28 +00:00
Philippe Charnier
7f69f4fdb0
match prototype
2000-05-28 14:57:49 +00:00
Peter Wemm
97d92980a9
$Id$ -> $FreeBSD$
1999-08-28 01:35:59 +00:00
Dag-Erling Smørgrav
068f8619d0
Typo police. '#ifndef lint' around CVS id. Don't use __progname in usage().
...
Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
1998-05-27 14:04:38 +00:00
Dag-Erling Smørgrav
83bc6a1106
Add chkgrp, a small utility for checking for syntax errors in group
...
files.
PR: bin/1387
Suggested-by: Giles Lean <giles@nemeton.com
1998-05-24 15:09:23 +00:00