git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
8ce66fb
)
s3-spoolss: fix return code of spoolss_DeletePrinter.
author
Günther Deschner
<gd@samba.org>
Thu, 18 Feb 2010 01:14:26 +0000
(
02:14
+0100)
committer
Günther Deschner
<gd@samba.org>
Thu, 18 Feb 2010 01:19:59 +0000
(
02:19
+0100)
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
source3/rpc_server/srv_spoolss_nt.c
patch
|
blob
|
history
diff --git
a/source3/rpc_server/srv_spoolss_nt.c
b/source3/rpc_server/srv_spoolss_nt.c
index 30bedc69e15059f8d5a23ca985bd2266fdd3f962..445a65465b19a63dd4aacae01a2cfc4e2c714bb3 100644
(file)
--- 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;