summaryrefslogtreecommitdiff
path: root/source4/lib/cmdline
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/cmdline')
-rw-r--r--source4/lib/cmdline/popt_common.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/lib/cmdline/popt_common.c b/source4/lib/cmdline/popt_common.c
index 712d99996c..0273c4fe1c 100644
--- a/source4/lib/cmdline/popt_common.c
+++ b/source4/lib/cmdline/popt_common.c
@@ -53,6 +53,11 @@ static void popt_version_callback(poptContext con,
}
}
+static void popt_s4_talloc_log_fn(const char *message)
+{
+ DEBUG(0,("%s", message));
+}
+
static void popt_samba_callback(poptContext con,
enum poptCallbackReason reason,
const struct poptOption *opt,
@@ -86,6 +91,8 @@ static void popt_samba_callback(poptContext con,
/* and logging */
setup_logging(pname, DEBUG_STDOUT);
+ talloc_set_log_fn(popt_s4_talloc_log_fn);
+ talloc_set_abort_fn(smb_panic);
return;
}