diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-07-25 09:27:34 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-07-25 12:15:03 +0200 |
commit | 72e047f7c53f4e0481e658a1a683f398f5515bfb (patch) | |
tree | 0348b73315e3c218a105a452c1cc9d8d6e6fc2af /source4 | |
parent | a10fe7b25203248e3b7b41248e5bbc86ba9c2ed3 (diff) | |
download | samba-72e047f7c53f4e0481e658a1a683f398f5515bfb.tar.gz samba-72e047f7c53f4e0481e658a1a683f398f5515bfb.tar.bz2 samba-72e047f7c53f4e0481e658a1a683f398f5515bfb.zip |
s4:torture/smb2: use smb2cli_tcon_capabilities()
metze
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/smb2/durable_v2_open.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source4/torture/smb2/durable_v2_open.c b/source4/torture/smb2/durable_v2_open.c index c1a2c883b9..700179efa3 100644 --- a/source4/torture/smb2/durable_v2_open.c +++ b/source4/torture/smb2/durable_v2_open.c @@ -420,13 +420,15 @@ bool test_persistent_open_oplock(struct torture_context *tctx, { char fname[256]; bool ret = true; + uint32_t share_capabilities; bool share_is_ca = false; struct durable_open_vs_oplock *table; /* Choose a random name in case the state is left a little funky. */ snprintf(fname, 256, "persistent_open_oplock_%s.dat", generate_random_str(tctx, 8)); - share_is_ca = tree->capabilities & SMB2_SHARE_CAP_CONTINUOUS_AVAILABILITY; + share_capabilities = smb2cli_tcon_capabilities(tree->smbXcli); + share_is_ca = share_capabilities & SMB2_SHARE_CAP_CONTINUOUS_AVAILABILITY; if (share_is_ca) { table = persistent_open_oplock_ca_table; @@ -506,6 +508,7 @@ bool test_persistent_open_lease(struct torture_context *tctx, char fname[256]; bool ret = true; uint32_t caps; + uint32_t share_capabilities; bool share_is_ca; struct durable_open_vs_lease *table; @@ -517,7 +520,8 @@ bool test_persistent_open_lease(struct torture_context *tctx, /* Choose a random name in case the state is left a little funky. */ snprintf(fname, 256, "persistent_open_lease_%s.dat", generate_random_str(tctx, 8)); - share_is_ca = tree->capabilities & SMB2_SHARE_CAP_CONTINUOUS_AVAILABILITY; + share_capabilities = smb2cli_tcon_capabilities(tree->smbXcli); + share_is_ca = share_capabilities & SMB2_SHARE_CAP_CONTINUOUS_AVAILABILITY; if (share_is_ca) { table = persistent_open_lease_ca_table; |