summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-08-01 16:41:19 +0200
committerStefan Metzmacher <metze@samba.org>2011-08-02 04:54:28 +0200
commitffd99c5de56b7e9f97a56b91983c966e88749090 (patch)
treec6af54ed8c0092607ae4af6132ee5a33ccb58411 /source3/libsmb
parenta4d79a379979ea6e32ea957830d2769a280440f2 (diff)
downloadsamba-ffd99c5de56b7e9f97a56b91983c966e88749090.tar.gz
samba-ffd99c5de56b7e9f97a56b91983c966e88749090.tar.bz2
samba-ffd99c5de56b7e9f97a56b91983c966e88749090.zip
s3:libsmb/libsmb_*: make use of cli_state_capabilities()
metze
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/libsmb_file.c2
-rw-r--r--source3/libsmb/libsmb_server.c2
-rw-r--r--source3/libsmb/libsmb_stat.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/source3/libsmb/libsmb_file.c b/source3/libsmb/libsmb_file.c
index 914b61409d..b5932c8164 100644
--- a/source3/libsmb/libsmb_file.c
+++ b/source3/libsmb/libsmb_file.c
@@ -551,7 +551,7 @@ SMBC_getatr(SMBCCTX * context,
}
/* if this is NT then don't bother with the getatr */
- if (targetcli->capabilities & CAP_NT_SMBS) {
+ if (cli_state_capabilities(targetcli) & CAP_NT_SMBS) {
errno = EPERM;
TALLOC_FREE(frame);
return False;
diff --git a/source3/libsmb/libsmb_server.c b/source3/libsmb/libsmb_server.c
index a2ed529228..e3290ece40 100644
--- a/source3/libsmb/libsmb_server.c
+++ b/source3/libsmb/libsmb_server.c
@@ -485,7 +485,7 @@ SMBC_server_internal(TALLOC_CTX *ctx,
here before trying to connect to the original share.
cli_check_msdfs_proxy() will fail if it is a normal share. */
- if ((c->capabilities & CAP_DFS) &&
+ if ((cli_state_capabilities(c) & CAP_DFS) &&
cli_check_msdfs_proxy(ctx, c, share,
&newserver, &newshare,
/* FIXME: cli_check_msdfs_proxy() does
diff --git a/source3/libsmb/libsmb_stat.c b/source3/libsmb/libsmb_stat.c
index c40db4a8d9..30b9291903 100644
--- a/source3/libsmb/libsmb_stat.c
+++ b/source3/libsmb/libsmb_stat.c
@@ -465,7 +465,7 @@ SMBC_fstatvfs_ctx(SMBCCTX *context,
}
/* See if DFS is supported */
- if ((cli->capabilities & CAP_DFS) && cli->dfsroot) {
+ if ((cli_state_capabilities(cli) & CAP_DFS) && cli->dfsroot) {
flags |= SMBC_VFS_FEATURE_DFS;
}