s3: smbd: Replace lp_posix_pathnames() with smbreq->posix_pathnames in smb2_query_dir...
authorJeremy Allison <jra@samba.org>
Tue, 22 Dec 2015 21:55:21 +0000 (13:55 -0800)
committerJeremy Allison <jra@samba.org>
Wed, 23 Dec 2015 17:23:17 +0000 (18:23 +0100)
Currently SMB2/3 doesn't do posix pathname processing, leave this
as a placeholder for when SMB2 unix extensions are added.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <Volker.Lendecke@SerNet.DE>
source3/smbd/smb2_query_directory.c

index 57c13938a84b06c3acff3281f77cf5e3e9f6fc28..4b6ca1b8c0abbfcf3b15d4b4ff949d00a599e816 100644 (file)
@@ -325,7 +325,7 @@ static struct tevent_req *smbd_smb2_query_directory_send(TALLOC_CTX *mem_ctx,
                dptr_CloseDir(fsp);
        }
 
-       if (!lp_posix_pathnames()) {
+       if (!smbreq->posix_pathnames) {
                wcard_has_wild = ms_has_wild(in_file_name);
        }
 
@@ -337,7 +337,7 @@ static struct tevent_req *smbd_smb2_query_directory_send(TALLOC_CTX *mem_ctx,
                char *to_free = NULL;
                uint32_t ucf_flags = UCF_SAVE_LCOMP |
                                     UCF_ALWAYS_ALLOW_WCARD_LCOMP |
-                                    (lp_posix_pathnames() ?
+                                    (smbreq->posix_pathnames ?
                                        UCF_POSIX_PATHNAMES : 0);
 
                if (ISDOT(fsp->fsp_name->base_name)) {