s3fs-smbd: Make sure the registry is set up before we init printing.
authorAndreas Schneider <asn@samba.org>
Tue, 2 Oct 2012 13:51:08 +0000 (15:51 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 4 Oct 2012 10:06:29 +0000 (12:06 +0200)
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Thu Oct  4 12:06:29 CEST 2012 on sn-devel-104

source3/smbd/server.c

index 90bbb62ef7f57d1564eb43d4b1cd7c9067322d7a..7dad13bbe4ab101a6bfee4bc2928ea07051304f2 100644 (file)
@@ -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;