From: Jeremy Allison Date: Tue, 29 Sep 2020 20:48:57 +0000 (-0700) Subject: s3: smbd: srvstr_get_path_wcard_posix() is no longer used. X-Git-Tag: talloc-2.3.2~393 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f0ecc7dcc61dce7f99fbb11fcdbb20fb6e02b40;p=thirdparty%2Fsamba.git s3: smbd: srvstr_get_path_wcard_posix() is no longer used. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index dafe448e3a8..6e2f42783e8 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -947,15 +947,6 @@ size_t srvstr_get_path_wcard(TALLOC_CTX *ctx, int flags, NTSTATUS *err, bool *contains_wcard); -size_t srvstr_get_path_wcard_posix(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 9f8ca773548..6947af6c63a 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -329,33 +329,6 @@ size_t srvstr_get_path_wcard(TALLOC_CTX *ctx, contains_wcard); } -/**************************************************************************** - Pull a string and check the path allowing a wildcard - provide for error return. - posix_pathnames version. -****************************************************************************/ - -size_t srvstr_get_path_wcard_posix(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, - true, - err, - contains_wcard); -} - /**************************************************************************** Pull a string and check the path - provide for error return. ****************************************************************************/