smbd: pass get_dosmode to smbd_dirptr_get_entry()
authorRalph Boehme <slow@samba.org>
Thu, 15 Mar 2018 15:08:11 +0000 (16:08 +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/dir.c
source3/smbd/globals.h
source3/smbd/trans2.c

index 8bb66b8193617d6b094c1e54df96543e50a21334..8f2f22d3eb136be5f1fae900c479651a68b31fde 100644 (file)
@@ -1087,6 +1087,7 @@ bool smbd_dirptr_get_entry(TALLOC_CTX *ctx,
                           uint32_t dirtype,
                           bool dont_descend,
                           bool ask_sharemode,
+                          bool get_dosmode,
                           bool (*match_fn)(TALLOC_CTX *ctx,
                                            void *private_data,
                                            const char *dname,
@@ -1361,6 +1362,7 @@ bool get_dir_entry(TALLOC_CTX *ctx,
                                   dirtype,
                                   check_descend,
                                   ask_sharemode,
+                                  true,
                                   smbd_dirptr_8_3_match_fn,
                                   smbd_dirptr_8_3_mode_fn,
                                   conn,
index c0c41250fcb042b7ea52bf3e483891c637661d60..e8a1e53a4193ba27b2b3629d9880ae92e223c79c 100644 (file)
@@ -176,6 +176,7 @@ bool smbd_dirptr_get_entry(TALLOC_CTX *ctx,
                           uint32_t dirtype,
                           bool dont_descend,
                           bool ask_sharemode,
+                          bool get_dosmode,
                           bool (*match_fn)(TALLOC_CTX *ctx,
                                            void *private_data,
                                            const char *dname,
index 118f44c6e24bc02b19d516890b580935d8cbb971..cd147f031dae2cf0ab3d44629305b5b2770b46c7 100644 (file)
@@ -2505,6 +2505,7 @@ NTSTATUS smbd_dirptr_lanman2_entry(TALLOC_CTX *ctx,
                                   dirtype,
                                   dont_descend,
                                   ask_sharemode,
+                                  get_dosmode,
                                   smbd_dirptr_lanman2_match_fn,
                                   smbd_dirptr_lanman2_mode_fn,
                                   &state,