summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-06-10 15:39:23 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:17:56 -0500
commit838e4835de917ab5b848f30cc6a226ba89038ea5 (patch)
tree6e9a62ea3415d4330f2973cf2d86ca569a80867c /source4
parent56af29caa50558d280a68e4d65503ebe96e36473 (diff)
downloadsamba-838e4835de917ab5b848f30cc6a226ba89038ea5.tar.gz
samba-838e4835de917ab5b848f30cc6a226ba89038ea5.tar.bz2
samba-838e4835de917ab5b848f30cc6a226ba89038ea5.zip
r7465: - return empty lists for now
- return WERR_NOT_SUPPORTED on AddPort() (we pass the RPC-SPOOLSS test now :-) metze (This used to be commit d62db5b7d3b6418e870b87c8fd33a1587ecc1728)
Diffstat (limited to 'source4')
-rw-r--r--source4/rpc_server/spoolss/dcesrv_spoolss.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/source4/rpc_server/spoolss/dcesrv_spoolss.c b/source4/rpc_server/spoolss/dcesrv_spoolss.c
index 41143e6f9b..f42710396f 100644
--- a/source4/rpc_server/spoolss/dcesrv_spoolss.c
+++ b/source4/rpc_server/spoolss/dcesrv_spoolss.c
@@ -221,7 +221,9 @@ static WERROR spoolss_GetJob(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem
static WERROR spoolss_EnumJobs(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
struct spoolss_EnumJobs *r)
{
- DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
+ *r->out.buf_size = 0;
+
+ return WERR_OK;
}
@@ -390,7 +392,9 @@ static WERROR spoolss_AddPrintProcessor(struct dcesrv_call_state *dce_call, TALL
static WERROR spoolss_EnumPrintProcessors(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
struct spoolss_EnumPrintProcessors *r)
{
- DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
+ *r->out.buf_size = 0;
+
+ return WERR_OK;
}
@@ -753,7 +757,9 @@ static WERROR spoolss_EnumPorts(struct dcesrv_call_state *dce_call, TALLOC_CTX *
static WERROR spoolss_EnumMonitors(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
struct spoolss_EnumMonitors *r)
{
- DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
+ *r->out.buf_size = 0;
+
+ return WERR_OK;
}
@@ -763,7 +769,7 @@ static WERROR spoolss_EnumMonitors(struct dcesrv_call_state *dce_call, TALLOC_CT
static WERROR spoolss_AddPort(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
struct spoolss_AddPort *r)
{
- DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
+ return WERR_NOT_SUPPORTED;
}