r4401: stricter test for correct ACL inheritance in RAW-ACLS
authorAndrew Tridgell <tridge@samba.org>
Thu, 30 Dec 2004 02:22:03 +0000 (02:22 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:07:43 +0000 (13:07 -0500)
(This used to be commit 1bb769196377772326151210309ff12362eb0f2f)

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)) {