CVS update: samba/source/utils

Andrew Tridgell tridge at samba.org
Tue Dec 4 17:06:50 EST 2001


> smbpasswd is *ugly*!
> 
> However this looks like the best spot to init the account policy db...

no, please don't do this. Having an init inside every little tool just
leads us down a nasty path where we have been before where the less
used tools keep being broken by careless commits.

Instead put the init in the fns that use the tdb, and use a 
	"static BOOL initialised;"
to catch a second init.

There are reasons to put init calls in smbd, because smbd changes uid
and thus may need to init at startup, but for all other tools please
just put the init in the fns that use the tdb.





More information about the samba-cvs mailing list