From a477387cd0011265d4f2bbdfbeabd4b9ac3a56b4 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 30 Dec 2004 02:22:03 +0000 Subject: r4401: stricter test for correct ACL inheritance in RAW-ACLS (This used to be commit 1bb769196377772326151210309ff12362eb0f2f) --- source4/torture/raw/acls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4') diff --git a/source4/torture/raw/acls.c b/source4/torture/raw/acls.c index 82e04ffcc7..993851c357 100644 --- a/source4/torture/raw/acls.c +++ b/source4/torture/raw/acls.c @@ -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)) { -- cgit