From: Ralph Boehme Date: Sat, 2 May 2020 10:55:33 +0000 (+0200) Subject: smbd: make canonicalize_snapshot_path() public X-Git-Tag: ldb-2.2.0~685 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=96921b6f5be1d7540b8fee3011b3488ad6cf0ed3;p=thirdparty%2Fsamba.git smbd: make canonicalize_snapshot_path() public Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- 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,