svn commit: samba r12692 - in trunk/source/utils: .

Andrew Bartlett abartlet at samba.org
Tue Jan 3 12:18:35 GMT 2006


On Tue, 2006-01-03 at 11:43 +0000, gd at samba.org wrote:
> Author: gd
> Date: 2006-01-03 11:43:29 +0000 (Tue, 03 Jan 2006)
> New Revision: 12692
> 
> WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=12692
> 
> Log:
> And yet another one.
> 
> Guenther
> 
> Modified:
>    trunk/source/utils/sharesec.c
> 
> 
> Changeset:
> Modified: trunk/source/utils/sharesec.c
> ===================================================================
> --- trunk/source/utils/sharesec.c	2006-01-03 06:33:49 UTC (rev 12691)
> +++ trunk/source/utils/sharesec.c	2006-01-03 11:43:29 UTC (rev 12692)
> @@ -298,6 +298,8 @@
>  
>  	setlinebuf(stdout);
>  
> +	load_case_tables();
> +
>  	lp_load( dyn_CONFIGFILE, False, False, False );
>  
>  	pc = poptGetContext("smbcacls", argc, argv, long_options, 0);

This is getting repeditive.  

In Samba4, we realised that the one thing we were always calling at
startup was popt, and so if you look at popt_common_callback(), you will
see where we do the FaultSetup and the like.

This may be a better solution that trying to remember to do this in
every binary.

Andrew Bartlett

-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org
Student Network Administrator, Hawker College  http://hawkerc.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20060103/34aa89e7/attachment.bin


More information about the samba-technical mailing list