summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2011-07-29 17:46:37 +0200
committerAndreas Schneider <asn@samba.org>2011-08-01 11:08:37 +0200
commitaca4dbe0008fe76841b0191602f5da416931fe07 (patch)
tree92e5d57055cf6cc247189175e9f4412cdb532d64 /source3/smbd
parent538bd1eca6846e3c5a52d792e456f463348527bc (diff)
downloadsamba-aca4dbe0008fe76841b0191602f5da416931fe07.tar.gz
samba-aca4dbe0008fe76841b0191602f5da416931fe07.tar.bz2
samba-aca4dbe0008fe76841b0191602f5da416931fe07.zip
s3-rpc_server: Use rpc_spoolss_mode().
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/server.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index d10f59cc46..18e51a2e42 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -1266,14 +1266,11 @@ extern void build_options(bool screen);
}
if (is_daemon && !_lp_disable_spoolss()) {
- const char *rpcsrv_type;
+ enum rpc_service_mode_e spoolss_mode = rpc_spoolss_mode();
/* start spoolss daemon */
/* start as a separate daemon only if enabled */
- rpcsrv_type = lp_parm_const_string(GLOBAL_SECTION_SNUM,
- "rpc_server", "spoolss",
- "embedded");
- if (strcasecmp_m(rpcsrv_type, "daemon") == 0) {
+ if (spoolss_mode == RPC_SERVICE_MODE_DAEMON) {
start_spoolssd(ev_ctx, msg_ctx);
}
}