This makes the samba.tests.domain_backup tests start working again when
they are run standalone. Without the load_interfaces() call,
smb_sysvol_conn() fails to make a connection to the sysvol share.
Signed-off-by: Jo Sutton <josutton@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
#include "lib/param/param.h"
#include "lib/util/debug.h"
#include "lib/util/fault.h"
+#include "lib/util/talloc_stack.h"
#include "auth/credentials/credentials.h"
#include "dynconfig/dynconfig.h"
#include "cmdline_private.h"
+#include "source3/lib/interface.h"
static bool _require_smbconf;
static enum samba_cmdline_config_type _config_type;
break;
}
+ {
+ /* load_interfaces() requires a talloc stackframe. */
+ TALLOC_CTX *frame = talloc_stackframe();
+
+ load_interfaces();
+
+ TALLOC_FREE(frame);
+ }
+
return true;
}
bld.SAMBA_SUBSYSTEM('CMDLINE_S4',
source='cmdline_s4.c',
- deps='cmdline')
+ deps='cmdline samba3core')
bld.SAMBA_BINARY('test_cmdline',
source='tests/test_cmdline.c',