git.samba.org
/
abartlet
/
samba.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41bb876
)
s4-smbtorture: fix spoolss SD test against w2k8r2.
author
Günther Deschner
<gd@samba.org>
Tue, 16 Feb 2010 09:45:29 +0000
(10:45 +0100)
committer
Günther Deschner
<gd@samba.org>
Tue, 16 Feb 2010 09:47:05 +0000
(10:47 +0100)
Guenther
source4/torture/rpc/spoolss.c
patch
|
blob
|
history
diff --git
a/source4/torture/rpc/spoolss.c
b/source4/torture/rpc/spoolss.c
index 54101e77dc2b1a0b3679717c359a9b46f5ba49a9..ec7233516ce7fb00a917f044eb39fa24e65fffb4 100644
(file)
--- a/
source4/torture/rpc/spoolss.c
+++ b/
source4/torture/rpc/spoolss.c
@@
-1672,6
+1672,10
@@
static bool test_PrinterInfo_SDs(struct torture_context *tctx,
torture_assert(tctx, test_GetPrinter_level(tctx, p, handle, 2, &info), "");
sd2 = info.info2.secdesc;
+ if (sd1->type & SEC_DESC_DACL_DEFAULTED) {
+ torture_comment(tctx, "removing SEC_DESC_DACL_DEFAULTED\n");
+ sd1->type &= ~SEC_DESC_DACL_DEFAULTED;
+ }
torture_assert(tctx, test_security_descriptor_equal(tctx, sd1, sd2), "");