From 1bf0289b23cae861ec1fa3c4a46e267392315726 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 7 Sep 2022 10:43:23 +0200 Subject: [PATCH] smbd: Make readlink_talloc() public Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/smbd/files.c | 2 +- source3/smbd/proto.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/source3/smbd/files.c b/source3/smbd/files.c index 0b071be33f2..9dc4e2a805b 100644 --- a/source3/smbd/files.c +++ b/source3/smbd/files.c @@ -679,7 +679,7 @@ static char *path_to_strv(TALLOC_CTX *mem_ctx, const char *path) return result; } -static NTSTATUS readlink_talloc( +NTSTATUS readlink_talloc( TALLOC_CTX *mem_ctx, struct files_struct *dirfsp, struct smb_filename *smb_relname, diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 4842ff8bb64..53a9a943d1f 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -455,6 +455,11 @@ NTSTATUS openat_pathref_dirfsp_nosymlink( struct smb_filename **_smb_fname, size_t *unparsed, char **substitute); +NTSTATUS readlink_talloc( + TALLOC_CTX *mem_ctx, + struct files_struct *dirfsp, + struct smb_filename *smb_relname, + char **_substitute); void smb_fname_fsp_unlink(struct smb_filename *smb_fname); -- 2.11.4.GIT