History log of /freebsd-10-stable/libexec/revnetgroup/revnetgroup.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 141589 09-Feb-2005 ru

Sync program's usage() with manpage's SYNOPSIS.


# 90377 07-Feb-2002 imp

o __P removal
o register removal
o use new style prototypes and function definitions


# 62983 11-Jul-2000 kris

Don't call err() without a format string.


# 50476 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 31404 25-Nov-1997 charnier

Use warn(3). Hardcode progname instead of using argv[0]. Use Pa for file
name.


# 29574 18-Sep-1997 phk

Many places in the code NULL is used in integer context, where
plain 0 should be used. This happens to work because we #define
NULL to 0, but is stylistically wrong and can cause problems
for people trying to port bits of code to other environments.

PR: 2752
Submitted by: Arne Henrik Juul <arnej@imf.unit.no>


# 24349 28-Mar-1997 imp

compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.


# 22989 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


# 21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


# 20387 13-Dec-1996 wpaul

Close PR #2193: support backslash line continuations.
(Also did some minor cleanups.)


# 17424 04-Aug-1996 wpaul

Use err() instead of perror()/exit() and remember to #include <errno.h>
and <err.h>.


# 15754 12-May-1996 wpaul

Small touchups:

- Fix typos in comments in hash.c.
- Remove unneeded and unused member from grouplist struct in hash.h.
(Curiously, the compiler never complained about this even though the
member was of type 'struct grps' which is not defined anywhere in
this program.)
- char ch -> int ch in revnetgroup.c.
- char *argv[0]; -> char *argv[]; also in revnetgroup.c.
- Force the user to specify at least one of the -u or -h flags
and complain if they specify both.


# 11815 26-Oct-1995 wpaul

This commit was generated by cvs2svn to compensate for changes in r11814,
which included commits to RCS files with non-trunk default branches.


# 11814 26-Oct-1995 wpaul

Import the first cut of my (finally finished) revnetgroup program. This
program parses the /etc/netgroup file into netgroup.byuser and netgroup.byhost
format for NIS.

I used hash tables to store the initial netgroup data in memory and to
construct the 'reverse' netgroup output. It seems just as fast as the
SunOS revnetgroup, which is surprising considering this is my first
attempt at using hash tables in a real application. :)

Note that I canibalized a large chunk of getnetgrent.c to save myself
from having to write my own netgroup parsing functions.