summaryrefslogtreecommitdiff
path: root/source3/libsmb/libsmb_server.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-09-27 06:06:32 +0200
committerMichael Adam <obnox@samba.org>2013-10-17 19:02:03 +0200
commit2474455b7f924ae19ea8897d5e506076f7e77419 (patch)
tree3c90d1562588d3d37f4b626efd255e08065eb632 /source3/libsmb/libsmb_server.c
parent307abd61df586baac6cb0bef4272c633c526a7bf (diff)
downloadsamba-2474455b7f924ae19ea8897d5e506076f7e77419.tar.gz
samba-2474455b7f924ae19ea8897d5e506076f7e77419.tar.bz2
samba-2474455b7f924ae19ea8897d5e506076f7e77419.zip
s3:libsmb: call smbXcli_tcon_set_fs_attributes() directly
We should try to set all attributes we got and not just FILE_CASE_SENSITIVE_SEARCH. Bug: https://bugzilla.samba.org/show_bug.cgi?id=10200 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Thu Oct 17 19:02:03 CEST 2013 on sn-devel-104
Diffstat (limited to 'source3/libsmb/libsmb_server.c')
-rw-r--r--source3/libsmb/libsmb_server.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/source3/libsmb/libsmb_server.c b/source3/libsmb/libsmb_server.c
index 357dc28088..9d87f421fb 100644
--- a/source3/libsmb/libsmb_server.c
+++ b/source3/libsmb/libsmb_server.c
@@ -256,6 +256,7 @@ SMBC_server_internal(TALLOC_CTX *ctx,
NTSTATUS status;
char *newserver, *newshare;
int flags = 0;
+ struct smbXcli_tcon *tcon = NULL;
ZERO_STRUCT(c);
*in_cache = false;
@@ -528,6 +529,12 @@ SMBC_server_internal(TALLOC_CTX *ctx,
DEBUG(4,(" tconx ok\n"));
+ if (smbXcli_conn_protocol(c->conn) >= PROTOCOL_SMB2_02) {
+ tcon = c->smb2.tcon;
+ } else {
+ tcon = c->smb1.tcon;
+ }
+
/* Determine if this share supports case sensitivity */
if (is_ipc) {
DEBUG(4, ("IPC$ so ignore case sensitivity\n"));
@@ -555,10 +562,7 @@ SMBC_server_internal(TALLOC_CTX *ctx,
(fs_attrs & FILE_CASE_SENSITIVE_SEARCH
? "True"
: "False")));
- cli_set_case_sensitive(c,
- (fs_attrs & FILE_CASE_SENSITIVE_SEARCH
- ? True
- : False));
+ smbXcli_tcon_set_fs_attributes(tcon, fs_attrs);
}
if (context->internal->smb_encryption_level) {