summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-03-01 00:29:51 +0100
committerMichael Adam <obnox@samba.org>2012-03-03 17:03:07 +0100
commit1451e5f66312e37b07d82e48a615b39fe63bd6e3 (patch)
treee510c114e085f14267c8c206377c5fe951ee93e3
parentac43937ce4d5100a82df9d76d50d72b97daaedd3 (diff)
downloadsamba-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.c1
-rw-r--r--source4/libcli/smb2/smb2.h1
-rw-r--r--source4/torture/smb2/util.c1
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;