100% CPU usage and no login

Luke Kenneth Casson Leighton lkcl at switchboard.net
Tue Dec 22 15:49:39 GMT 1998


> OK, I checked this out going really deep in the code, and I found the
> following:
> 
>    groupdb/groupunix.c:getgrpunixpwent() calls lib/util.c:gidtoname()
>       (through several steps) in a while cycle which goes by the
>       return value of getgrent().
>    lib/util.c:gidtoname() calls getgrgid() which resets the file
>       pointer of the group file (at least under my OS).
>    Therefore the while cycle in groupdb/groupunix.c:getgrpunixpwent()
>       would go into an infinite loop, if it did not have a break in it.

thanks.



More information about the samba-technical mailing list