1e890b056a
- getnetgrent.c: address some NIS compatibility problems. We really need to use the netgroup.byuser and netgroup.byhost maps to speed up innetgr() when using NIS. Also, change the NIS interaction in the following way: If /etc/netgroup does not exist or is empty (or contains only the NIS '+' token), we now use NIS exclusively. This lets us use the 'reverse netgroup' maps and is more or less the behavior of other platforms. If /etc/netgroup exists and contains local netgroup data (but no '+'). we use only lthe local stuff and ignore NIS. If /etc/netgroup exists and contains both local data and the '+', we use the local data nd the netgroup map as a single combined database (which, unfortunately, can be slow when the netgroup database is large). This is what we have been doing up until now. Head off a potential NULL pointer dereference in the old innetgr() matching code. Also fix the way the NIS netgroup map is incorporated into things: adding the '+' is supposed to make it seem as though the netgroup database is 'inserted' wherever the '+' is placed. We didn't quite do it that way before. (The NetBSD people apparently use a real, honest-to-gosh, netgroup.db database that works just like the password database. This is actually a neat idea since netgroups is the sort of thing that can really benefit from having multi-key search capability, particularly since reverse lookups require more than a trivial amount of processing. Should we do something like this too?) - netgroup.5: document all this stuff. - rcmd.c: some sleuthing with some test programs linked with my own version of innetgr() has revealed that SunOS always passes the NIS domain name to innetgr() in the 'domain' argument. We might as well do the same (if YP is defined). - ether_addr.c: also fix the NIS interaction so that placing the '+' token in the /etc/ethers file makes it seem like the NIS ethers data is 'inserted' at that point. (Chances are nobody will notice the effect of this change, which is just te way I like it. :) |
||
---|---|---|
.. | ||
byteorder.3 | ||
ether_addr.c | ||
ethers.3 | ||
gethostbydns.c | ||
gethostbyht.c | ||
gethostbyname.3 | ||
gethostbynis.c | ||
gethostnamadr.c | ||
getnetbyaddr.c | ||
getnetbydns.c | ||
getnetbyht.c | ||
getnetbyname.c | ||
getnetbynis.c | ||
getnetent.3 | ||
getnetent.c | ||
getnetnamadr.c | ||
getproto.c | ||
getprotoent.3 | ||
getprotoent.c | ||
getprotoname.c | ||
getservbyname.c | ||
getservbyport.c | ||
getservent.3 | ||
getservent.c | ||
herror.c | ||
inet_addr.c | ||
inet_lnaof.c | ||
inet_makeaddr.c | ||
inet_netof.c | ||
inet_network.c | ||
inet_ntoa.c | ||
inet.3 | ||
iso_addr.3 | ||
iso_addr.c | ||
linkaddr.3 | ||
linkaddr.c | ||
Makefile.inc | ||
ns_addr.c | ||
ns_ntoa.c | ||
ns.3 | ||
rcmd.3 | ||
rcmd.c | ||
recv.c | ||
res_comp.c | ||
res_debug.c | ||
res_init.c | ||
res_mkquery.c | ||
res_query.c | ||
res_send.c | ||
resolver.3 | ||
send.c | ||
sethostent.c |