summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-10-29 21:10:31 +1100
committerAndrew Bartlett <abartlet@samba.org>2010-11-02 04:36:04 +0000
commited111d11ebcbaa1e709485f86ca45e582a55301f (patch)
tree5a9866d3417a24b21412a7158e80a234a8dee2f5 /source3/smbd
parente64dfdcc71e17f21419f24b3f2b32d477b4cea1e (diff)
downloadsamba-ed111d11ebcbaa1e709485f86ca45e582a55301f.tar.gz
samba-ed111d11ebcbaa1e709485f86ca45e582a55301f.tar.bz2
samba-ed111d11ebcbaa1e709485f86ca45e582a55301f.zip
s3-debug Move 'load_case_tables()' before lp_set_cmdline() and popt calls
The problem here is that we cannot run lp_set_cmdline() (directly or indirectly via the popt helpers) until load_case_tables() has been run. However, load_case_tables does not have auto-initialisation, so we must init it once, and once only. Andrew Bartlett
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index ebcc8ab6d7..dd3ae3a730 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -869,6 +869,8 @@ extern void build_options(bool screen);
talloc_enable_null_tracking();
frame = talloc_stackframe();
+ load_case_tables();
+
/* Initialize the event context, it will panic on error */
smbd_event_context();
@@ -926,8 +928,6 @@ extern void build_options(bool screen);
exit(0);
}
- load_case_tables();
-
#ifdef HAVE_SETLUID
/* needed for SecureWare on SCO */
setluid(0);