Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
long offset = 0;
const char *dname = NULL;
char *talloced = NULL;
+ bool case_sensitive =
+ (smb_fname->flags & SMB_FILENAME_POSIX_PATH) ?
+ true : conn->case_sensitive;
if ((dirtype & SAMBA_ATTRIBUTES_MASK) == FILE_ATTRIBUTE_DIRECTORY) {
status = NT_STATUS_OBJECT_NAME_INVALID;
}
if(!mask_match(dname, fname_mask,
- conn->case_sensitive)) {
+ case_sensitive)) {
TALLOC_FREE(frame);
TALLOC_FREE(talloced);
continue;