Siddhesh Poyarekar dd3022d75e Return NULL for wildcard values in getnetgrent from nscd (BZ #16759)
getnetgrent is supposed to return NULL for values that are wildcards
in the (host, user, domain) triplet.  This works correctly with nscd
disabled, but with it enabled, it returns a blank ("") instead of a
NULL.  This is easily seen with the output of `getent netgroup foonet`
for a netgroup foonet defined as follows in /etc/netgroup:

    foonet (,foo,)

The output with nscd disabled is:

    foonet ( ,foo,)

while with nscd enabled, it is:

    foonet (,foo,)

The extra space with nscd disabled is due to the fact that `getent
netgroup` adds it if the return value from getnetgrent is NULL for
either host or user.
2014-03-27 19:49:51 +05:30
..
2011-05-05 07:36:40 -04:00
2003-08-27 20:57:30 +00:00
2011-12-03 21:49:35 -05:00
2002-05-24 08:49:00 +00:00
2013-06-05 20:44:03 +00:00
2013-06-05 20:44:03 +00:00
2006-05-25 04:50:06 +00:00