diff options
author | Michael Adam <obnox@samba.org> | 2012-03-01 00:29:51 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2012-03-03 17:03:07 +0100 |
commit | 1451e5f66312e37b07d82e48a615b39fe63bd6e3 (patch) | |
tree | e510c114e085f14267c8c206377c5fe951ee93e3 | |
parent | ac43937ce4d5100a82df9d76d50d72b97daaedd3 (diff) | |
download | samba-1451e5f66312e37b07d82e48a615b39fe63bd6e3.tar.gz samba-1451e5f66312e37b07d82e48a615b39fe63bd6e3.tar.bz2 samba-1451e5f66312e37b07d82e48a615b39fe63bd6e3.zip |
s4:libcli:smb2: store the share capabilites in the smb2_tree object
-rw-r--r-- | source4/libcli/smb2/connect.c | 1 | ||||
-rw-r--r-- | source4/libcli/smb2/smb2.h | 1 | ||||
-rw-r--r-- | source4/torture/smb2/util.c | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/source4/libcli/smb2/connect.c b/source4/libcli/smb2/connect.c index 77b974475e..b2657f2568 100644 --- a/source4/libcli/smb2/connect.c +++ b/source4/libcli/smb2/connect.c @@ -242,6 +242,7 @@ static void smb2_connect_tcon_done(struct smb2_request *smb2req) } state->tree->tid = state->tcon.out.tid; + state->tree->capabilities = state->tcon.out.capabilities; tevent_req_done(req); } diff --git a/source4/libcli/smb2/smb2.h b/source4/libcli/smb2/smb2.h index 1cff5eac59..c4dc0001a0 100644 --- a/source4/libcli/smb2/smb2.h +++ b/source4/libcli/smb2/smb2.h @@ -107,6 +107,7 @@ struct smb2_transport { struct smb2_tree { struct smb2_session *session; uint32_t tid; + uint32_t capabilities; }; /* diff --git a/source4/torture/smb2/util.c b/source4/torture/smb2/util.c index 62e4681563..e966b9cbe4 100644 --- a/source4/torture/smb2/util.c +++ b/source4/torture/smb2/util.c @@ -295,6 +295,7 @@ bool torture_smb2_tree_connect(struct torture_context *tctx, } tree->tid = tcon.out.tid; + tree->capabilities = tcon.out.capabilities; *_tree = tree; |