s3: smbd: In smb2_query_directory.c Use ucf_flags variable instead of passing as...
authorJeremy Allison <jra@samba.org>
Tue, 22 Dec 2015 19:12:34 +0000 (11:12 -0800)
committerJeremy Allison <jra@samba.org>
Wed, 23 Dec 2015 02:31:10 +0000 (03:31 +0100)
This will allow us to move lp_posix_pathnames() out of unix_convert()
later.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <rb@sernet.de>
source3/smbd/smb2_query_directory.c

index 56dab691064d62ea8bf06f7007ab88aae673e201..31205fe6e6407364f607487baa55a35c991d1a1e 100644 (file)
@@ -335,6 +335,8 @@ static struct tevent_req *smbd_smb2_query_directory_send(TALLOC_CTX *mem_ctx,
                const char *fullpath;
                char tmpbuf[PATH_MAX];
                char *to_free = NULL;
+               uint32_t ucf_flags = UCF_SAVE_LCOMP |
+                                    UCF_ALWAYS_ALLOW_WCARD_LCOMP;
 
                if (ISDOT(fsp->fsp_name->base_name)) {
                        fullpath = in_file_name;
@@ -355,7 +357,7 @@ static struct tevent_req *smbd_smb2_query_directory_send(TALLOC_CTX *mem_ctx,
                                conn,
                                false, /* Not a DFS path. */
                                fullpath,
-                               UCF_SAVE_LCOMP | UCF_ALWAYS_ALLOW_WCARD_LCOMP,
+                               ucf_flags,
                                &wcard_has_wild,
                                &smb_fname);