summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-09-27 05:31:07 +0200
committerMichael Adam <obnox@samba.org>2013-10-17 16:09:10 +0200
commitb16b469f3fa3766c19ca30f377cc7de6782c05e6 (patch)
treee9152bcf1017d0b1715d3dade5430a328d68bb22
parente6eb6b9e9494d1c8db311e5b967b0da4d75c45aa (diff)
downloadsamba-b16b469f3fa3766c19ca30f377cc7de6782c05e6.tar.gz
samba-b16b469f3fa3766c19ca30f377cc7de6782c05e6.tar.bz2
samba-b16b469f3fa3766c19ca30f377cc7de6782c05e6.zip
libcli/smb: add FLAG_CASELESS_PATHNAMES based on FILE_CASE_SENSITIVE_SEARCH to smb1 requests
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>
-rw-r--r--libcli/smb/smbXcli_base.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libcli/smb/smbXcli_base.c b/libcli/smb/smbXcli_base.c
index a2a559af96..082b62604b 100644
--- a/libcli/smb/smbXcli_base.c
+++ b/libcli/smb/smbXcli_base.c
@@ -1273,6 +1273,13 @@ struct tevent_req *smb1cli_req_create(TALLOC_CTX *mem_ctx,
if (tcon) {
tid = tcon->smb1.tcon_id;
+ if (tcon->fs_attributes & FILE_CASE_SENSITIVE_SEARCH) {
+ clear_flags |= FLAG_CASELESS_PATHNAMES;
+ } else {
+ /* Default setting, case insensitive. */
+ additional_flags |= FLAG_CASELESS_PATHNAMES;
+ }
+
if (smbXcli_conn_dfs_supported(conn) &&
smbXcli_tcon_is_dfs_share(tcon))
{