r7525: Unify lp_load(), load_interfaces and logging setup into popt().
authorAndrew Bartlett <abartlet@samba.org>
Mon, 13 Jun 2005 08:12:39 +0000 (08:12 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:18:06 +0000 (13:18 -0500)
commit50f3c2b3a22971f40e0d3a88127b5120bfc47591
treee6eb482d5c0cb595cd3f1c7017484566d05ead8b
parent235cf625e20767c8d5d30c5955ae45e1fdf88bf2
r7525: Unify lp_load(), load_interfaces and logging setup into popt().

There is now a new --debug-stderr option to enable debug to STDERR.

popt isn't perfect, but the callbacks are used in all the main Samba
binaries, and should be used in the rest.  This avoids duplicated
code, and ensures every binary is setup correctly.

This also ensures the setup happens early enough to have -s function,
and have a correct impact on the credentials code.  (Fixing a bug that
frustrated tridge earlier today).

The only 'subtle' aspect of all this is that I'm pretty sure that the
SAMBA_COMMON popt code must be above the CREDENTIALS code, in the
popt tables.

Andrew Bartlett
15 files changed:
source/client/client.c
source/include/debug.h
source/lib/cmdline/popt_common.c
source/lib/debug.c
source/lib/registry/tools/regdiff.c
source/lib/registry/tools/regpatch.c
source/lib/registry/tools/regshell.c
source/lib/registry/tools/regtree.c
source/smbd/server.c
source/torture/smbiconv.c
source/torture/torture.c
source/utils/ndrdump.c
source/utils/net/net.c
source/utils/nmblookup.c
source/utils/ntlm_auth.c