Whoops: expanding netgroups that reference multiple netgroups doesn't

work because parse_netgrp() doesn't recurse properly. Fixed by
changing

if (parse_netgrp(spos))
	return(1);
to

if (parse_netgrp(spos))
	continue;

inside parse_netgrp(). (Lucky for me I happen to have a fairly complex
'live' netgroup database to test this stuff with.)
This commit is contained in:
Bill Paul 1995-03-19 22:19:52 +00:00
parent c0585ea944
commit e80307946b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=7175

View File

@ -258,7 +258,7 @@ parse_netgrp(group)
} else {
spos = strsep(&pos, ", \t");
if (parse_netgrp(spos))
return (1);
continue;
}
/* Watch for null pointer dereferences, dammit! */
if (pos != NULL)