git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f5b0ec
)
r5516: NT4 doesn't support GetPrinterDataEx()
author
Stefan Metzmacher
<metze@samba.org>
Wed, 23 Feb 2005 15:08:41 +0000
(15:08 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:10:53 +0000
(13:10 -0500)
metze
source/torture/rpc/spoolss.c
patch
|
blob
|
history
diff --git
a/source/torture/rpc/spoolss.c
b/source/torture/rpc/spoolss.c
index c7a0a1e066aa8e1e0cf92ee0a297c204991296b1..18b9e23b755f0b636f4c94fa3efe89d323f135cc 100644
(file)
--- a/
source/torture/rpc/spoolss.c
+++ b/
source/torture/rpc/spoolss.c
@@
-482,8
+482,12
@@
static BOOL test_GetPrinterDataEx(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
printf("Testing GetPrinterDataEx\n");
status = dcerpc_spoolss_GetPrinterDataEx(p, mem_ctx, &r);
-
if (!NT_STATUS_IS_OK(status)) {
+ if (NT_STATUS_EQUAL(status,NT_STATUS_NET_WRITE_FAULT) &&
+ p->last_fault_code == DCERPC_FAULT_OP_RNG_ERROR) {
+ printf("GetPrinterDataEx not supported by server\n");
+ return True;
+ }
printf("GetPrinterDataEx failed - %s\n", nt_errstr(status));
return False;
}