summaryrefslogtreecommitdiff
path: root/source3/smbd/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd/server.c')
-rw-r--r--source3/smbd/server.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 6cc7907cbb..ff59b3dbaf 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -794,8 +794,6 @@ static bool init_structs(void )
if (!init_names())
return False;
- file_init();
-
if (!secrets_init())
return False;
@@ -1168,6 +1166,11 @@ extern void build_options(bool screen);
return -1;
}
+ if (!file_init(smbd_server_conn)) {
+ DEBUG(0, ("ERROR: file_init failed\n"));
+ return -1;
+ }
+
/*
* Initialize spoolss with an init function to convert printers first.
* static_init_rpc will try to initialize the spoolss server too but you