s3:libsmb/libsmb_*: make use of cli_state_capabilities()
authorStefan Metzmacher <metze@samba.org>
Mon, 1 Aug 2011 14:41:19 +0000 (16:41 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 2 Aug 2011 02:54:28 +0000 (04:54 +0200)
metze

source3/libsmb/libsmb_file.c
source3/libsmb/libsmb_server.c
source3/libsmb/libsmb_stat.c

index 914b61409d4f25f3d15ddfdf60b6a768199bf13d..b5932c8164a9db13ad31823e17796e936dcbd787 100644 (file)
@@ -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;
index a2ed5292284581d8e55e6e9535447a56086a3472..e3290ece400822bc584347fb8aaf5ffa501a593a 100644 (file)
@@ -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
index c40db4a8d9d31042605b94d2fa8932e9c269ae24..30b9291903a2a0175f2cd66522b27994ed3db0f3 100644 (file)
@@ -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;
         }