diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-01-07 02:13:07 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:08:29 -0500 |
commit | 1a019f988385ee8ef947fc5054ee86b9c2cc632e (patch) | |
tree | e88072aa3952b45480755d3123b06b467559215c | |
parent | 468b3fcef2500f5c45ed1e21ca43db507ef9c6ef (diff) | |
download | samba-1a019f988385ee8ef947fc5054ee86b9c2cc632e.tar.gz samba-1a019f988385ee8ef947fc5054ee86b9c2cc632e.tar.bz2 samba-1a019f988385ee8ef947fc5054ee86b9c2cc632e.zip |
r4583: print which bit failed in the owner bits check
(This used to be commit f893ad9c45d6d06fa1b6f1f949a7834e7bf99ba7)
-rw-r--r-- | source4/torture/raw/acls.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/torture/raw/acls.c b/source4/torture/raw/acls.c index dd87ceac22..3e3fb17c52 100644 --- a/source4/torture/raw/acls.c +++ b/source4/torture/raw/acls.c @@ -847,6 +847,10 @@ static BOOL test_owner_bits(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) io.ntcreatex.in.access_mask = bit; status = smb_raw_open(cli->tree, mem_ctx, &io); if (expected_bits & bit) { + if (!NT_STATUS_IS_OK(status)) { + printf("failed with access mask 0x%08x of expected 0x%08x\n", + bit, expected_bits); + } CHECK_STATUS(status, NT_STATUS_OK); CHECK_ACCESS_FLAGS(io.ntcreatex.out.fnum, bit | SEC_FILE_READ_ATTRIBUTE); smbcli_close(cli->tree, io.ntcreatex.out.fnum); |