Cannot add machine with latest CVS

Greg Dickie greg at
Thu Dec 10 00:48:38 GMT 1998

On 10-Dec-98 Luke Kenneth Casson Leighton wrote:
> On Wed, 9 Dec 1998, Greg Dickie wrote:
>> Hmm setgrent appears in 3 files (aliasunix.c,groupunix.c,builtinunix.c) are
>> all
>> these mutually exclusive?
> possibly not.  imagine a situation in which a group enumeration occurs, it
> gets group info (members of the group).  the group enumeration could call
> getgrent, and the enumeration of the group members could do likewise.
> what about getting the primary user's group and the users' group members?
> etc.
> so it's all riddled with awkward horrible stuff and i'm giving serious
> consideration to cacheing the unix group -> nt rid data using
> groupdb/aliasfile.c,groupfile.c and builtinfile.c.

I was thinking about this as well, its not like the group database changes too
often. Of course you still need to cycle through it at least once and how would
you know when your cache needs to be flushed in an NIS situation?

> the enumeration algorithms for *unix.c are probably order n squared at
> least, and for them to be fixed properly then need to be order n cubed,
> which is horrible.

greg dickie
just a guy*
*from discreet logic

Linux, the choice of a GNU generation!

More information about the samba-ntdom mailing list