]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: Make refuse_symlink_fsp() public so we can reuse in nttrans.c
authorJeremy Allison <jra@samba.org>
Thu, 20 May 2021 19:13:19 +0000 (12:13 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 9 Jun 2021 13:14:30 +0000 (13:14 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/proto.h
source3/smbd/trans2.c

index 45d720c08080ebd1863b78a1effd4e75187720f9..6eb63159a3b6196d74cd5b507dd02986263691d8 100644 (file)
@@ -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);
index 2f978cebd8f4564a7e6dbd8896f783880659555a..5d4645f09dd238b754c7b7a4ad1ccae1d7477c01 100644 (file)
@@ -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)) {