From: Jeremy Allison Date: Fri, 15 Oct 2021 21:04:07 +0000 (-0700) Subject: s3: smbd: get_real_filename() is actually static to filename.c X-Git-Tag: ldb-2.5.0~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f0935b369e79d67f7a42b9531b2c123f2410ccc;p=thirdparty%2Fsamba.git s3: smbd: get_real_filename() is actually static to filename.c Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c index eec7877b38b..0fbf6f9616a 100644 --- a/source3/smbd/filename.c +++ b/source3/smbd/filename.c @@ -30,6 +30,12 @@ #include "smbd/smbd.h" #include "smbd/globals.h" +static int get_real_filename(connection_struct *conn, + struct smb_filename *path, + const char *name, + TALLOC_CTX *mem_ctx, + char **found_name); + uint32_t ucf_flags_from_smb_request(struct smb_request *req) { uint32_t ucf_flags = 0; @@ -1685,11 +1691,11 @@ int get_real_filename_full_scan(connection_struct *conn, fallback. ****************************************************************************/ -int get_real_filename(connection_struct *conn, - struct smb_filename *path, - const char *name, - TALLOC_CTX *mem_ctx, - char **found_name) +static int get_real_filename(connection_struct *conn, + struct smb_filename *path, + const char *name, + TALLOC_CTX *mem_ctx, + char **found_name) { int ret; bool mangled; diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index bf7401f5191..981248f0cf8 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -363,11 +363,6 @@ NTSTATUS check_name(connection_struct *conn, NTSTATUS canonicalize_snapshot_path(struct smb_filename *smb_fname, uint32_t ucf_flags, NTTIME twrp); -int get_real_filename(connection_struct *conn, - struct smb_filename *path, - const char *name, - TALLOC_CTX *mem_ctx, - char **found_name); int get_real_filename_full_scan(connection_struct *conn, const char *path, const char *name,