smbd: add "get_dosmode" argument to smbd_dirptr_lanman2_entry()
authorRalph Boehme <slow@samba.org>
Thu, 15 Mar 2018 14:50:41 +0000 (15:50 +0100)
committerRalph Boehme <slow@samba.org>
Fri, 27 Jul 2018 11:07:15 +0000 (13:07 +0200)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/globals.h
source3/smbd/smb2_query_directory.c
source3/smbd/trans2.c

index 19a130e64f64eb9c71b97b78e3469f57b3036451..c0c41250fcb042b7ea52bf3e483891c637661d60 100644 (file)
@@ -201,6 +201,7 @@ NTSTATUS smbd_dirptr_lanman2_entry(TALLOC_CTX *ctx,
                               int requires_resume_key,
                               bool dont_descend,
                               bool ask_sharemode,
+                              bool get_dosmode,
                               uint8_t align,
                               bool do_pad,
                               char **ppdata,
index 50a5bca5d7b2ba1fad44599380f6f122ef8664c3..7584598c2c391ae0586a59866b90e9f901a0c487 100644 (file)
@@ -522,6 +522,7 @@ static struct tevent_req *smbd_smb2_query_directory_send(TALLOC_CTX *mem_ctx,
                                               false, /* requires_resume_key */
                                               dont_descend,
                                               ask_sharemode,
+                                              true,
                                               8, /* align to 8 bytes */
                                               false, /* no padding */
                                               &pdata,
index af7a0d7248420929cd1272816ebc65f42ae7e275..118f44c6e24bc02b19d516890b580935d8cbb971 100644 (file)
@@ -2450,6 +2450,7 @@ NTSTATUS smbd_dirptr_lanman2_entry(TALLOC_CTX *ctx,
                               int requires_resume_key,
                               bool dont_descend,
                               bool ask_sharemode,
+                              bool get_dosmode,
                               uint8_t align,
                               bool do_pad,
                               char **ppdata,
@@ -2588,7 +2589,7 @@ static NTSTATUS get_lanman2_dir_entry(TALLOC_CTX *ctx,
        return smbd_dirptr_lanman2_entry(ctx, conn, dirptr, flags2,
                                         path_mask, dirtype, info_level,
                                         requires_resume_key, dont_descend, ask_sharemode,
-                                        align, do_pad,
+                                        true, align, do_pad,
                                         ppdata, base_data, end_data,
                                         space_remaining,
                                         got_exact_match,