a44e4d1407
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.
9 lines
115 B
Makefile
9 lines
115 B
Makefile
# $Id$
|
|
|
|
PROG= revnetgroup
|
|
SRCS= revnetgroup.c hash.c parse_netgroup.c
|
|
|
|
MAN8= revnetgroup.8
|
|
|
|
.include <bsd.prog.mk>
|