[Samba] Patch for NGROUPS_MAX on FreeBSD with more then 64 groups

Valerio Daelli valerio.daelli at ifom-ieo-campus.it
Mon Mar 16 09:30:10 GMT 2009


Hi

yes FreeBSD has a getgrouplist call.
I think extending temp_groups is not a problem since
sys_getgrouplist returns -1 only if the array is too small
but we are doubling the size of the array from 32 to 64.
If the array is too small we try realloc that and redo the getgrouplist
and only if that fails we free the pointer and return error to the  
caller.
And I don't think we should worry about the size since gid_t is only 4  
bytes.
I did some test with teh patch and all went fine.
Regards

Valerio
It
> might be possible that we have a bug when extending the
> temp_groups array, but if that is the case this bug needs
> fixing.
>
> Does your platform have a getgrouplist call?
>
> Volker

---
Il tuo 5 X mille a favore della Ricerca della Fondazione IFOM

Tutti coloro che presentano il modello Unico, il modello 730 o che  
ricevono dal proprio datore di lavoro il modello CUD,
hanno la facoltà di scegliere la destinazione del proprio 5 X mille.

Nella casella riservata al Finanziamento agli Enti della Ricerca  
Sanitaria inserisci il codice fiscale di IFOM (97358780159) e apponi  
la tua firma.

Il tuo 5 X mille verrà destinato alla Ricerca contro il Cancro della  
Fondazione IFOM

Per saperne di più vai al sito IFOM.
http://www.ifom-firc.it/5x1000.php

Segnala questa opportunità ai tuoi amici e al tuo commercialista

---

Valerio Daelli
Email valerio.daelli at ifom-ieo-campus.it
Phone +39 02 574303006
c/o IFOM-IEO campus, building 1 -Via Adamello 16 - 20139 Milan Italy





More information about the samba mailing list