From: Jeremy Allison Date: Thu, 20 May 2021 19:13:19 +0000 (-0700) Subject: s3: smbd: Make refuse_symlink_fsp() public so we can reuse in nttrans.c X-Git-Tag: tevent-0.11.0~628 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c66305f4c8161a5eef4cb541ae496fca9383296f;p=thirdparty%2Fsamba.git s3: smbd: Make refuse_symlink_fsp() public so we can reuse in nttrans.c Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 45d720c0808..6eb63159a3b 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -1202,6 +1202,7 @@ int sys_statvfs(const char *path, vfs_statvfs_struct *statbuf); /* The following definitions come from smbd/trans2.c */ +NTSTATUS refuse_symlink_fsp(const struct files_struct *fsp); NTSTATUS check_access_fsp(struct files_struct *fsp, uint32_t access_mask); uint64_t smb_roundup(connection_struct *conn, uint64_t val); diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 2f978cebd8f..5d4645f09dd 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -62,7 +62,7 @@ static char *store_file_unix_basic_info2(connection_struct *conn, Check if an open file handle is a symlink. ****************************************************************************/ -static NTSTATUS refuse_symlink_fsp(const files_struct *fsp) +NTSTATUS refuse_symlink_fsp(const files_struct *fsp) { if (!VALID_STAT(fsp->fsp_name->st)) {