From: Volker Lendecke Date: Sat, 24 Jun 2023 08:02:05 +0000 (+0200) Subject: smbd: Remove "atname" from smbd_dirptr_get_entry()'s mode_fn X-Git-Tag: talloc-2.4.1~141 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e4422b2ff33c5d49df23da1686a7be636779d5ab;p=thirdparty%2Fsamba.git smbd: Remove "atname" from smbd_dirptr_get_entry()'s mode_fn Unused. Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c index daa8960f791..59fbe548501 100644 --- a/source3/smbd/dir.c +++ b/source3/smbd/dir.c @@ -520,7 +520,6 @@ bool smbd_dirptr_get_entry(TALLOC_CTX *ctx, bool (*mode_fn)(TALLOC_CTX *ctx, void *private_data, struct files_struct *dirfsp, - struct smb_filename *atname, struct smb_filename *smb_fname, bool get_dosmode, uint32_t *_mode), @@ -759,7 +758,6 @@ bool smbd_dirptr_get_entry(TALLOC_CTX *ctx, ok = mode_fn(ctx, private_data, dir_hnd->fsp, - NULL, smb_fname, get_dosmode, &mode); diff --git a/source3/smbd/globals.h b/source3/smbd/globals.h index 96dee78119f..ed79ba657ac 100644 --- a/source3/smbd/globals.h +++ b/source3/smbd/globals.h @@ -174,7 +174,6 @@ bool smbd_dirptr_get_entry(TALLOC_CTX *ctx, bool (*mode_fn)(TALLOC_CTX *ctx, void *private_data, struct files_struct *dirfsp, - struct smb_filename *atname, struct smb_filename *smb_fname, bool get_dosmode, uint32_t *_mode), diff --git a/source3/smbd/smb1_reply.c b/source3/smbd/smb1_reply.c index 545c8f85fd4..a0d84bcbffc 100644 --- a/source3/smbd/smb1_reply.c +++ b/source3/smbd/smb1_reply.c @@ -1202,7 +1202,6 @@ static bool smbd_dirptr_8_3_match_fn(TALLOC_CTX *ctx, static bool smbd_dirptr_8_3_mode_fn(TALLOC_CTX *ctx, void *private_data, struct files_struct *dirfsp, - struct smb_filename *atname, struct smb_filename *smb_fname, bool get_dosmode, uint32_t *_mode) diff --git a/source3/smbd/smb2_trans2.c b/source3/smbd/smb2_trans2.c index f4778870ea2..85233a055a6 100644 --- a/source3/smbd/smb2_trans2.c +++ b/source3/smbd/smb2_trans2.c @@ -1010,7 +1010,6 @@ static bool smbd_dirptr_lanman2_match_fn(TALLOC_CTX *ctx, static bool smbd_dirptr_lanman2_mode_fn(TALLOC_CTX *ctx, void *private_data, struct files_struct *dirfsp, - struct smb_filename *atname, struct smb_filename *smb_fname, bool get_dosmode, uint32_t *_mode)