diff options
author | Michael Adam <obnox@samba.org> | 2011-11-08 18:22:47 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2011-11-09 01:02:08 +0100 |
commit | cb98e31b2458d4f6aceabd888f276ef65b2518bd (patch) | |
tree | 37a635930626c401904c1821838c1ca15ddf2de1 /source4/torture | |
parent | 901cab2deff08917471998bede7fcd245cd89266 (diff) | |
download | samba-cb98e31b2458d4f6aceabd888f276ef65b2518bd.tar.gz samba-cb98e31b2458d4f6aceabd888f276ef65b2518bd.tar.bz2 samba-cb98e31b2458d4f6aceabd888f276ef65b2518bd.zip |
s4:torture:smb2: add smb2_oplock_create_share() that takes sharemode as parameter
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/smb2/util.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source4/torture/smb2/util.c b/source4/torture/smb2/util.c index db7e8a5713..094161e6eb 100644 --- a/source4/torture/smb2/util.c +++ b/source4/torture/smb2/util.c @@ -636,9 +636,15 @@ void smb2_lease_create(struct smb2_create *io, struct smb2_lease *ls, leasekey, leasestate); } +void smb2_oplock_create_share(struct smb2_create *io, const char *name, + uint32_t share_access, uint8_t oplock) +{ + smb2_generic_create_share(io, NULL, false, name, NTCREATEX_DISP_OPEN_IF, + share_access, oplock, 0, 0); +} void smb2_oplock_create(struct smb2_create *io, const char *name, uint8_t oplock) { - smb2_generic_create(io, NULL, false, name, NTCREATEX_DISP_OPEN_IF, - oplock, 0, 0); + smb2_oplock_create_share(io, name, smb2_util_share_access("RWD"), + oplock); } |