CVS update: samba/source/passdb

Gerald Carter jerry at samba.org
Wed Jan 16 03:01:02 EST 2002


On Mon, 14 Jan 2002 abartlet at samba.org wrote:

> The pdb_init_sam and pdb_free_sam functions now also return an
> NTSTATUS, and I have modified the 3 places that actually checked these
> returns.
>
> The only nasty thing about this patch is the small measure needed to
> maintin interface compatability - strings set to NULL are actually set
> to "".
>
> This is becouse there are too many places in Samba that do strlen() on
> these strings without checking if they are NULL pointers.
>
> A supp patch will follow to set all strings to "" in
> pdb_default_sam().

Wny not just define more FLAG_SAM_XXX bitmasks? and use IS_SAM_SET()?





jerry





More information about the samba-cvs mailing list