From: Jeremy Allison Date: Fri, 3 Dec 2021 01:55:26 +0000 (-0800) Subject: s3: smbd: Remove filename_convert_with_privilege(). No longer used. X-Git-Tag: tdb-1.4.6~336 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59b7101ac9ebc001f3ad9f03b5607e1db577e9e4;p=thirdparty%2Fsamba.git s3: smbd: Remove filename_convert_with_privilege(). No longer used. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c index b0f6ac5a99f..820a8780acd 100644 --- a/source3/smbd/filename.c +++ b/source3/smbd/filename.c @@ -2125,27 +2125,6 @@ NTSTATUS filename_convert(TALLOC_CTX *ctx, pp_smb_fname); } -/* - * Go through all the steps to validate a filename. - * root (privileged) version. - */ - -NTSTATUS filename_convert_with_privilege(TALLOC_CTX *ctx, - connection_struct *conn, - struct smb_request *smbreq, - const char *name_in, - uint32_t ucf_flags, - struct smb_filename **pp_smb_fname) -{ - return filename_convert_internal(ctx, - conn, - smbreq, - name_in, - ucf_flags, - 0, - pp_smb_fname); -} - /* * Build the full path from a dirfsp and dirfsp relative name */ diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 82a8234ba8a..97536c82c0f 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -378,12 +378,6 @@ NTSTATUS filename_convert(TALLOC_CTX *mem_ctx, uint32_t ucf_flags, NTTIME twrp, struct smb_filename **pp_smb_fname); -NTSTATUS filename_convert_with_privilege(TALLOC_CTX *mem_ctx, - connection_struct *conn, - struct smb_request *smbreq, - const char *name_in, - uint32_t ucf_flags, - struct smb_filename **pp_smb_fname); /* The following definitions come from smbd/files.c */