summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-02-16 10:45:29 +0100
committerGünther Deschner <gd@samba.org>2010-02-16 10:47:05 +0100
commit020c8df2815b5ccf9d63ec690f329ea83d5c900f (patch)
tree403e43672bad062800c47d87a50e9b6e27af9cd0 /source4
parent41bb8767a2440d3c6db76c1547c988f4adabe5b9 (diff)
downloadsamba-020c8df2815b5ccf9d63ec690f329ea83d5c900f.tar.gz
samba-020c8df2815b5ccf9d63ec690f329ea83d5c900f.tar.bz2
samba-020c8df2815b5ccf9d63ec690f329ea83d5c900f.zip
s4-smbtorture: fix spoolss SD test against w2k8r2.
Guenther
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/rpc/spoolss.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c
index 54101e77dc..ec7233516c 100644
--- 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), "");