r4401: stricter test for correct ACL inheritance in RAW-ACLS
[samba.git] / source4 / torture / raw / acls.c
index 82e04ffcc72456233b89d636fa928b2706339850..993851c357d1b0f94b323846cc4c4da78a3f0cb3 100644 (file)
@@ -954,7 +954,7 @@ static BOOL test_inheritance(struct smbcli_state *cli, TALLOC_CTX *mem_ctx)
                }
 
                if (q.query_secdesc.out.sd->dacl == NULL ||
-                   q.query_secdesc.out.sd->dacl->num_aces < 1 ||
+                   q.query_secdesc.out.sd->dacl->num_aces != 1 ||
                    q.query_secdesc.out.sd->dacl->aces[0].access_mask != SEC_FILE_WRITE_DATA ||
                    !dom_sid_equal(&q.query_secdesc.out.sd->dacl->aces[0].trustee,
                                   sd_orig->owner_sid)) {
@@ -999,7 +999,7 @@ static BOOL test_inheritance(struct smbcli_state *cli, TALLOC_CTX *mem_ctx)
                }
 
                if (q.query_secdesc.out.sd->dacl == NULL ||
-                   q.query_secdesc.out.sd->dacl->num_aces < 1 ||
+                   q.query_secdesc.out.sd->dacl->num_aces != 1 ||
                    q.query_secdesc.out.sd->dacl->aces[0].access_mask != SEC_FILE_WRITE_DATA ||
                    !dom_sid_equal(&q.query_secdesc.out.sd->dacl->aces[0].trustee,
                                   sd_orig->owner_sid)) {