From 96921b6f5be1d7540b8fee3011b3488ad6cf0ed3 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Sat, 2 May 2020 12:55:33 +0200 Subject: [PATCH] smbd: make canonicalize_snapshot_path() public Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- source3/smbd/filename.c | 4 ++-- source3/smbd/proto.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c index 0a3d8f39007..6b3e08579ab 100644 --- a/source3/smbd/filename.c +++ b/source3/smbd/filename.c @@ -364,8 +364,8 @@ static NTSTATUS rearrange_snapshot_path(struct smb_filename *smb_fname, * instead. */ -static NTSTATUS canonicalize_snapshot_path(struct smb_filename *smb_fname, - NTTIME twrp) +NTSTATUS canonicalize_snapshot_path(struct smb_filename *smb_fname, + NTTIME twrp) { char *startp = strchr_m(smb_fname->base_name, '@'); char *endp = NULL; diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index b5dfac54861..3a3e7774f05 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -367,6 +367,8 @@ NTSTATUS unix_convert(TALLOC_CTX *ctx, uint32_t ucf_flags); NTSTATUS check_name(connection_struct *conn, const struct smb_filename *smb_fname); +NTSTATUS canonicalize_snapshot_path(struct smb_filename *smb_fname, + NTTIME twrp); int get_real_filename(connection_struct *conn, struct smb_filename *path, const char *name, -- 2.47.3