1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-02 00:22:11 +03:00

s3-rpc_server: Register embedded RPC services after starting lsasd and spoolssd

This ensures that these services are not accidentally registered in
these child processes.

Andrew Bartlett
This commit is contained in:
Andrew Bartlett
2012-03-07 21:24:01 +11:00
parent 781bb3617b
commit 78f85b282e

View File

@ -1354,10 +1354,6 @@ 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 */
@ -1382,6 +1378,10 @@ extern void build_options(bool screen);
}
}
if (!dcesrv_ep_setup(ev_ctx, msg_ctx)) {
exit(1);
}
if (!is_daemon) {
/* inetd mode */
TALLOC_FREE(frame);