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
NTSTATUS status;
char *newserver, *newshare;
int flags = 0;
NTSTATUS status;
char *newserver, *newshare;
int flags = 0;
+ struct smbXcli_tcon *tcon = NULL;
ZERO_STRUCT(c);
*in_cache = false;
ZERO_STRUCT(c);
*in_cache = false;
DEBUG(4,(" tconx ok\n"));
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"));
/* Determine if this share supports case sensitivity */
if (is_ipc) {
DEBUG(4, ("IPC$ so ignore case sensitivity\n"));
(fs_attrs & FILE_CASE_SENSITIVE_SEARCH
? "True"
: "False")));
(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) {
}
if (context->internal->smb_encryption_level) {