#include "../lib/util/smb_threads.h"
#include "../lib/util/smb_threads_internal.h"
-#if 0
-/* darn, we can't do this now that we don't link the ldb tools to all the smb libs */
-#define TALLOC_ABORT(reason) smb_panic(reason)
-#endif
-
#if defined(UID_WRAPPER)
#if !defined(UID_WRAPPER_REPLACE) && !defined(UID_WRAPPER_NOT_REPLACE)
#define UID_WRAPPER_REPLACE
}
}
+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,
/* and logging */
setup_logging(pname, DEBUG_STDOUT);
+ talloc_set_log_fn(popt_s4_talloc_log_fn);
+ talloc_set_abort_fn(smb_panic);
return;
}