static bool test_args = False;
struct cli_state *cli;
bool fix_user = False;
+ bool ok;
SMB_NTQUOTA_STRUCT qt;
TALLOC_CTX *frame = talloc_stackframe();
poptContext pc;
fault_setup();
- lp_load_global(get_dyn_CONFIGFILE());
- load_interfaces();
-
smbcquotas_auth_info = user_auth_info_init(frame);
if (smbcquotas_auth_info == NULL) {
exit(1);
poptFreeContext(pc);
popt_burn_cmdline_password(argc, argv);
+ ok = lp_load_global(get_dyn_CONFIGFILE());
+ if (!ok) {
+ DBG_ERR("ERROR: Loading config file %s - "
+ "run testparm to debug it\n",
+ get_dyn_CONFIGFILE());
+ exit(EXIT_PARSE_ERROR);
+ }
+
+ /* We must load interfaces after we load the smb.conf */
+ load_interfaces();
+
string_replace(path, '/', '\\');
server = SMB_STRDUP(path+2);