git.samba.org
/
bbaumbach
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bf2a21
)
s4 torture: Win7 has a slightly different allowed access mask
author
Zach Loafman
<zachary.loafman@isilon.com>
Mon, 16 Mar 2009 16:24:06 +0000
(09:24 -0700)
committer
Tim Prouty
<tprouty@samba.org>
Tue, 17 Mar 2009 20:43:28 +0000
(13:43 -0700)
Still investigating.
source4/torture/smb2/create.c
patch
|
blob
|
history
diff --git
a/source4/torture/smb2/create.c
b/source4/torture/smb2/create.c
index 6d898a128cf50b24464d93f80c015aa069fede0f..febfbe03ec4190505cfe6c10cb597927a7ecb584 100644
(file)
--- 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;