s3: smbd: In smb2_query_directory.c.c, add in UCF_POSIX_PATHNAMES to the ucf_flags...
authorJeremy Allison <jra@samba.org>
Tue, 22 Dec 2015 19:27:39 +0000 (11:27 -0800)
committerJeremy Allison <jra@samba.org>
Wed, 23 Dec 2015 02:31:10 +0000 (03:31 +0100)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <rb@sernet.de>
source3/smbd/smb2_query_directory.c

index 31205fe6e6407364f607487baa55a35c991d1a1e..57c13938a84b06c3acff3281f77cf5e3e9f6fc28 100644 (file)
@@ -336,7 +336,9 @@ static struct tevent_req *smbd_smb2_query_directory_send(TALLOC_CTX *mem_ctx,
                char tmpbuf[PATH_MAX];
                char *to_free = NULL;
                uint32_t ucf_flags = UCF_SAVE_LCOMP |
-                                    UCF_ALWAYS_ALLOW_WCARD_LCOMP;
+                                    UCF_ALWAYS_ALLOW_WCARD_LCOMP |
+                                    (lp_posix_pathnames() ?
+                                       UCF_POSIX_PATHNAMES : 0);
 
                if (ISDOT(fsp->fsp_name->base_name)) {
                        fullpath = in_file_name;