From: Ralph Boehme Date: Thu, 15 Mar 2018 15:08:11 +0000 (+0100) Subject: smbd: pass get_dosmode to smbd_dirptr_get_entry() X-Git-Tag: ldb-1.5.0~145 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2a2294bbdfff754403f9381388cbb71cde3a9694;p=thirdparty%2Fsamba.git smbd: pass get_dosmode to smbd_dirptr_get_entry() Signed-off-by: Ralph Boehme Reviewed-by: Stefan Metzmacher --- diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c index 8bb66b81936..8f2f22d3eb1 100644 --- a/source3/smbd/dir.c +++ b/source3/smbd/dir.c @@ -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, diff --git a/source3/smbd/globals.h b/source3/smbd/globals.h index c0c41250fcb..e8a1e53a419 100644 --- a/source3/smbd/globals.h +++ b/source3/smbd/globals.h @@ -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, diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 118f44c6e24..cd147f031da 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -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,