}
if (reason == POPT_CALLBACK_REASON_POST) {
+ struct messaging_context *msg_ctx = NULL;
if (PrintSambaVersionString) {
printf( "Version %s\n", samba_version_string());
}
}
+ msg_ctx = client_messaging_context(get_dyn_CONFIGFILE());
+ if (msg_ctx == NULL) {
+ fprintf(stderr, "Unable to initialize messaging context.");
+ if (geteuid() == 0) {
+ exit(1);
+ }
+ }
+
/* Further 'every Samba program must do this' hooks here. */
return;
}
if (reason == POPT_CALLBACK_REASON_POST) {
bool ok;
+ struct messaging_context *msg_ctx = NULL;
if (override_logfile) {
setup_logging(lp_logfile(talloc_tos()), DEBUG_FILE );
}
+ msg_ctx = client_messaging_context(get_dyn_CONFIGFILE());
+ if (msg_ctx == NULL) {
+ fprintf(stderr, "Unable to initialize messaging context.");
+ if (geteuid() == 0) {
+ exit(1);
+ }
+ }
+
ok = lp_load_client(get_dyn_CONFIGFILE());
if (!ok) {
const char *pname = poptGetInvocationName(con);