git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
781bb36
)
s3-rpc_server: Register embedded RPC services after starting lsasd and spoolssd
author
Andrew Bartlett
<abartlet@samba.org>
Wed, 7 Mar 2012 10:24:01 +0000
(21:24 +1100)
committer
Andrew Bartlett
<abartlet@samba.org>
Wed, 7 Mar 2012 11:46:14 +0000
(12:46 +0100)
This ensures that these services are not accidentally registered in
these child processes.
Andrew Bartlett
source3/smbd/server.c
patch
|
blob
|
history
diff --git
a/source3/smbd/server.c
b/source3/smbd/server.c
index cab23bc6d53ef27af0570c03ce8f402e37ea5904..e348e0b5e055b120befeaffb8224b211f527fe8a 100644
(file)
--- a/
source3/smbd/server.c
+++ b/
source3/smbd/server.c
@@
-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);