More share_init to more apprioriate place.
authorJelmer Vernooij <jelmer@samba.org>
Thu, 21 Feb 2008 15:21:32 +0000 (16:21 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Thu, 21 Feb 2008 15:21:32 +0000 (16:21 +0100)
source/smb_server/smb_server.c
source/smbd/server.c

index 9a8a8cf5c4643d0b18041f001acc84fcf7880faa..c031b5bd6558812e6db4d7a942f7515837be91cd 100644 (file)
@@ -253,5 +253,6 @@ failed:
 /* called at smbd startup - register ourselves as a server service */
 NTSTATUS server_service_smb_init(void)
 {
+       share_init();
        return register_server_service("smb", smbsrv_task_init);
 }
index dd63ca1ecabd5901a514bed36aba67eb986624d0..8ad3e030ff0a6a288d556590cd2e7df35511ba77 100644 (file)
@@ -282,8 +282,6 @@ static int binary_smbd_main(const char *binary_name, int argc, const char *argv[
                exit(1);
        }
 
-       share_init();
-
        gensec_init(cmdline_lp_ctx); /* FIXME: */
 
        ntptr_init(cmdline_lp_ctx);     /* FIXME: maybe run this in the initialization function