mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
s3: smbd: Make refuse_symlink_fsp() public so we can reuse in nttrans.c
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
580d691c9b
commit
c66305f4c8
@ -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);
|
||||
|
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user