s4-smbtorture: fix spoolss SD test against w2k8r2.
[ira/wip.git] / source4 / torture / rpc / spoolss.c
index 54101e77dc2b1a0b3679717c359a9b46f5ba49a9..ec7233516ce7fb00a917f044eb39fa24e65fffb4 100644 (file)
@@ -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), "");