summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-02-21 16:21:32 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-02-28 18:06:23 +0100
commit5374be2acb8cffdd07e63691b1904ef8dc7054c2 (patch)
tree5cda8de687443db04fd0a634accc9b9a822562f0 /source4
parent76d6c43ef28ef06d8b2e603da0fa8e5c6faf5fdd (diff)
downloadsamba-5374be2acb8cffdd07e63691b1904ef8dc7054c2.tar.gz
samba-5374be2acb8cffdd07e63691b1904ef8dc7054c2.tar.bz2
samba-5374be2acb8cffdd07e63691b1904ef8dc7054c2.zip
More share_init to more apprioriate place.
(This used to be commit 990135517618afcef873f0cd0e6f8c3098247b50)
Diffstat (limited to 'source4')
-rw-r--r--source4/smb_server/smb_server.c1
-rw-r--r--source4/smbd/server.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/source4/smb_server/smb_server.c b/source4/smb_server/smb_server.c
index 9a8a8cf5c4..c031b5bd65 100644
--- a/source4/smb_server/smb_server.c
+++ b/source4/smb_server/smb_server.c
@@ -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);
}
diff --git a/source4/smbd/server.c b/source4/smbd/server.c
index fdeb541576..fe38a4e5ab 100644
--- a/source4/smbd/server.c
+++ b/source4/smbd/server.c
@@ -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