From 26e8bd7e1eee76917e039783ed43ac5b02e5b89c Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 29 Sep 2020 13:51:46 -0700 Subject: [PATCH] s3: smbd: Remove srvstr_get_path_wcard() - no longer used. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- source3/smbd/proto.h | 9 --------- source3/smbd/reply.c | 26 -------------------------- 2 files changed, 35 deletions(-) diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 6e2f42783e8..a4a1b0caefe 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -938,15 +938,6 @@ bool disk_quotas(connection_struct *conn, struct smb_filename *fname, NTSTATUS check_path_syntax(char *path); NTSTATUS check_path_syntax_wcard(char *path, bool *p_contains_wcard); NTSTATUS check_path_syntax_posix(char *path); -size_t srvstr_get_path_wcard(TALLOC_CTX *ctx, - const char *inbuf, - uint16_t smb_flags2, - char **pp_dest, - const char *src, - size_t src_len, - int flags, - NTSTATUS *err, - bool *contains_wcard); size_t srvstr_get_path(TALLOC_CTX *ctx, const char *inbuf, uint16_t smb_flags2, diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 6947af6c63a..a6a54827ad6 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -303,32 +303,6 @@ static size_t srvstr_get_path_wcard_internal(TALLOC_CTX *ctx, return ret; } -/**************************************************************************** - Pull a string and check the path allowing a wildcard - provide for error return. -****************************************************************************/ - -size_t srvstr_get_path_wcard(TALLOC_CTX *ctx, - const char *base_ptr, - uint16_t smb_flags2, - char **pp_dest, - const char *src, - size_t src_len, - int flags, - NTSTATUS *err, - bool *contains_wcard) -{ - return srvstr_get_path_wcard_internal(ctx, - base_ptr, - smb_flags2, - pp_dest, - src, - src_len, - flags, - false, - err, - contains_wcard); -} - /**************************************************************************** Pull a string and check the path - provide for error return. ****************************************************************************/ -- 2.34.1