summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-02-18 02:14:26 +0100
committerGünther Deschner <gd@samba.org>2010-02-18 02:19:59 +0100
commit43e3d8f51da4bbdb3108af45e2fddab7e2e91f04 (patch)
treeafd6e62e27dccf412862fc310b8855f932a64c72 /source3
parent8ce66fba03f782c0b9948a9835bb488cfa74acf9 (diff)
downloadsamba-43e3d8f51da4bbdb3108af45e2fddab7e2e91f04.tar.gz
samba-43e3d8f51da4bbdb3108af45e2fddab7e2e91f04.tar.bz2
samba-43e3d8f51da4bbdb3108af45e2fddab7e2e91f04.zip
s3-spoolss: fix return code of spoolss_DeletePrinter.
When the printer has been removed by the "deleteprinter command", we need to check if it is still there and then fail, not fail if we successfully removed it (found by RPC-SPOOLSS-PRINTER). Guenther
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 30bedc69e1..445a65465b 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -315,7 +315,7 @@ static WERROR delete_printer_hook(TALLOC_CTX *ctx, NT_USER_TOKEN *token, const c
reload_services(false);
unbecome_root();
- if ( lp_servicenumber( sharename ) < 0 )
+ if ( lp_servicenumber( sharename ) > 0 )
return WERR_ACCESS_DENIED;
return WERR_OK;