From 0a2bd5035aff869cd83f86a0ec16040ffeb9a47b Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 2 Oct 2012 15:51:08 +0200 Subject: [PATCH 2/2] s3fs-smbd: Make sure the registry is set up before we init printing. (cherry picked from commit 50de2c9bbbc25074f022b4b2cf9d49f8e9a53e01) Signed-off-by: Andreas Schneider --- source3/smbd/server.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source3/smbd/server.c b/source3/smbd/server.c index 90bbb62..7dad13b 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -1471,6 +1471,10 @@ extern void build_options(bool screen); } } + if (!dcesrv_ep_setup(ev_ctx, msg_ctx)) { + exit(1); + } + /* only start other daemons if we are running as a daemon * -- bad things will happen if smbd is launched via inetd * and we fork a copy of ourselves here */ @@ -1495,10 +1499,6 @@ extern void build_options(bool screen); } } - if (!dcesrv_ep_setup(ev_ctx, msg_ctx)) { - exit(1); - } - if (!is_daemon) { int sock; -- 1.7.12