diff options
author | Zach Loafman <zachary.loafman@isilon.com> | 2009-03-16 09:24:06 -0700 |
---|---|---|
committer | Tim Prouty <tprouty@samba.org> | 2009-03-17 13:43:28 -0700 |
commit | 211e2555690afc0436c2bafb7ef8d426564cc680 (patch) | |
tree | 5b2d899941c2dd4bcc22074f71c952567d471dc5 /source4 | |
parent | 7bf2a213cd589e1f0f80faab343aea30263046c2 (diff) | |
download | samba-211e2555690afc0436c2bafb7ef8d426564cc680.tar.gz samba-211e2555690afc0436c2bafb7ef8d426564cc680.tar.bz2 samba-211e2555690afc0436c2bafb7ef8d426564cc680.zip |
s4 torture: Win7 has a slightly different allowed access mask
Still investigating.
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/smb2/create.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source4/torture/smb2/create.c b/source4/torture/smb2/create.c index 6d898a128c..febfbe03ec 100644 --- a/source4/torture/smb2/create.c +++ b/source4/torture/smb2/create.c @@ -43,6 +43,8 @@ return false; \ }} while (0) +#define TARGET_IS_WIN7(_tctx) (torture_setting_bool(_tctx, "win7", false)) + /* test some interesting combinations found by gentest */ @@ -160,7 +162,11 @@ static bool test_create_gentest(struct torture_context *torture, struct smb2_tre } } - CHECK_EQUAL(access_mask, 0x0df0fe00); + if (TARGET_IS_WIN7(torture)) { + CHECK_EQUAL(access_mask, 0x0de0fe00); + } else { + CHECK_EQUAL(access_mask, 0x0df0fe00); + } io.in.create_disposition = NTCREATEX_DISP_OPEN_IF; io.in.desired_access = SEC_FLAG_MAXIMUM_ALLOWED; |