s3:smbd: only call file_init_global() in the parent smbd
authorStefan Metzmacher <metze@samba.org>
Thu, 24 May 2012 10:26:46 +0000 (12:26 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 24 May 2012 16:16:37 +0000 (18:16 +0200)
metze

source3/smbd/process.c
source3/smbd/server.c

index ab5f0b21e27f81e959bd5ee28207dbfee4fa609d..24d6ec397646affbc464f8c5b4be4022e7c1094a 100644 (file)
@@ -3337,6 +3337,10 @@ void smbd_process(struct tevent_context *ev_ctx,
                exit_server("Failed to init smb_signing");
        }
 
+       if (!file_init(sconn)) {
+               exit_server("file_init() failed");
+       }
+
        /* Setup oplocks */
        if (!init_oplocks(sconn))
                exit_server("Failed to init oplocks");
index d6c7874fb811ff54b0f6db4c0defd0d7877d2f37..36048632e08ec865c8795724091abf4f909abfc9 100644 (file)
@@ -1436,8 +1436,8 @@ extern void build_options(bool screen);
                return -1;
        }
 
-       if (!file_init(smbd_server_conn)) {
-               DEBUG(0, ("ERROR: file_init failed\n"));
+       if (!file_init_global()) {
+               DEBUG(0, ("ERROR: file_init_global() failed\n"));
                return -1;
        }