summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/cmdline/popt_common.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source4/lib/cmdline/popt_common.c b/source4/lib/cmdline/popt_common.c
index 53bb7b5a8c..4e808652f7 100644
--- a/source4/lib/cmdline/popt_common.c
+++ b/source4/lib/cmdline/popt_common.c
@@ -49,9 +49,6 @@ static void popt_common_callback(poptContext con,
{
const char *pname;
- /* setup for panics */
- fault_setup(poptGetInvocationName(con));
-
if (reason == POPT_CALLBACK_REASON_POST) {
/* Hook any 'every Samba program must do this, after
* the smb.conf is setup' functions here */
@@ -69,6 +66,10 @@ static void popt_common_callback(poptContext con,
pname++;
if (reason == POPT_CALLBACK_REASON_PRE) {
+ /* setup for panics */
+ fault_setup(poptGetInvocationName(con));
+
+ /* and logging */
setup_logging(pname, DEBUG_STDOUT);
return;
}