summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/utils/regedit.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/utils/regedit.c b/source3/utils/regedit.c
index 79b05a0c1e..b088ea47cd 100644
--- a/source3/utils/regedit.c
+++ b/source3/utils/regedit.c
@@ -109,7 +109,6 @@ int main(int argc, char **argv)
setup_logging("regedit", DEBUG_DEFAULT_STDERR);
lp_set_cmdline("log level", "0");
- lp_load_global(get_dyn_CONFIGFILE());
/* process options */
auth_info = user_auth_info_init(frame);
@@ -123,6 +122,11 @@ int main(int argc, char **argv)
/* TODO */
}
+ if (!lp_load_global(get_dyn_CONFIGFILE())) {
+ DEBUG(0, ("ERROR loading config file...\n"));
+ exit(1);
+ }
+
/* some simple tests */
rv = reg_open_samba3(frame, &ctx);