The functions in getgrent.c don't work right, because gr_mem isn't set up properly to deal with emtpy groups or the end-of-line. The return value from strsep() is the buffer pointer given to strsep()
The functions in getgrent.c don't work right, because gr_mem isn't set up properly to deal with emtpy groups or the end-of-line. The return value from strsep() is the buffer pointer given to strsep() so there's an extra blnak entry at the end of the user list. The field can be zero length if there are extra space. From: "Chris G. Demetriou" <cgd@vangogh.CS.Berkeley.EDU>
show more ...
|