CVSROOT:        /cvs
Module name:    src
Changes by:     schwa...@cvs.openbsd.org        2009/06/05 11:08:37

Modified files:
        lib/libc/gen   : getgrent.c 

Log message:
When parsing a line stating with "+" or "-" in group(5),
check whether YP is active up front, not half-way through the parsing.
This fixes the bug that group names starting with a dash (yuck!)
were skipped when YP was not active, introduced in rev. 1.27.
Besides, the code becomes easier to understand.
The code inside the two switch cases is unchanged, just reindented.
"looks good" millert@

Reply via email to