diff options
author | Andreas Schneider <asn@samba.org> | 2011-07-29 17:46:37 +0200 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2011-08-01 11:08:37 +0200 |
commit | aca4dbe0008fe76841b0191602f5da416931fe07 (patch) | |
tree | 92e5d57055cf6cc247189175e9f4412cdb532d64 /source3/smbd | |
parent | 538bd1eca6846e3c5a52d792e456f463348527bc (diff) | |
download | samba-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.c | 7 |
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); } } |