bool correct = True;
TALLOC_CTX *frame = talloc_stackframe();
int seed = time(NULL);
+ struct loadparm_context *lp_ctx = NULL;
#ifdef HAVE_SETBUFFER
setbuffer(stdout, NULL, 0);
smb_init_locale();
fault_setup();
+ lp_ctx = loadparm_init_s3(frame, loadparm_s3_helpers());
+ if (lp_ctx == NULL) {
+ fprintf(stderr,
+ "Failed to initialise the global parameter structure.\n");
+ return 1;
+ }
+
if (is_default_dyn_CONFIGFILE()) {
if(getenv("SMB_CONF_PATH")) {
set_dyn_CONFIGFILE(getenv("SMB_CONF_PATH"));
fstrcpy(workgroup,optarg);
break;
case 'm':
- lp_set_cmdline("client max protocol", optarg);
+ lpcfg_set_cmdline(lp_ctx, "client max protocol", optarg);
break;
case 'N':
torture_nprocs = atoi(optarg);
torture_numops = atoi(optarg);
break;
case 'd':
- lp_set_cmdline("log level", optarg);
+ lpcfg_set_cmdline(lp_ctx, "log level", optarg);
break;
case 'O':
sockops = optarg;