From: Jeremy Allison Date: Wed, 30 Sep 2020 00:18:59 +0000 (-0700) Subject: s3: smbd: Remove unused check_path_syntax_wcard(). X-Git-Tag: talloc-2.3.2~379 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a9186829eb2b2365a91d870d8c04fe3506366f18;p=thirdparty%2Fsamba.git s3: smbd: Remove unused check_path_syntax_wcard(). Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme Autobuild-User(master): Ralph Böhme Autobuild-Date(master): Wed Sep 30 22:08:01 UTC 2020 on sn-devel-184 --- diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 149abf9e589..72ee8e82fe5 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -933,7 +933,6 @@ bool disk_quotas(connection_struct *conn, struct smb_filename *fname, /* The following definitions come from smbd/reply.c */ 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(TALLOC_CTX *ctx, const char *inbuf, diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 325196c6f13..e7771e2bc59 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -232,17 +232,6 @@ NTSTATUS check_path_syntax(char *path) return check_path_syntax_internal(path, False, &ignore); } -/**************************************************************************** - Ensure we check the path in *exactly* the same way as W2K for regular pathnames. - Wildcards allowed - p_contains_wcard returns true if the last component contained - a wildcard. -****************************************************************************/ - -NTSTATUS check_path_syntax_wcard(char *path, bool *p_contains_wcard) -{ - return check_path_syntax_internal(path, False, p_contains_wcard); -} - /**************************************************************************** Check the path for a POSIX client. We're assuming here that '/' is not the second byte in any multibyte char