From: Volker Lendecke Date: Sun, 14 Apr 2019 09:41:49 +0000 (+0200) Subject: smbd: Make "check_access()" static to trans2.c X-Git-Tag: tdb-1.4.1~220 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a34d6a78df0510be444217db565c900eec6bbf51;p=thirdparty%2Fsamba.git smbd: Make "check_access()" static to trans2.c Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 68568e1bb3d..05208166ebf 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -1162,10 +1162,6 @@ int sys_statvfs(const char *path, vfs_statvfs_struct *statbuf); NTSTATUS check_access_fsp(const struct files_struct *fsp, uint32_t access_mask); -NTSTATUS check_access(connection_struct *conn, - files_struct *fsp, - const struct smb_filename *smb_fname, - uint32_t access_mask); uint64_t smb_roundup(connection_struct *conn, uint64_t val); uint64_t get_FileIndex(connection_struct *conn, const SMB_STRUCT_STAT *psbuf); void aapl_force_zero_file_id(struct smbd_server_connection *sconn); diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index fe406adb58f..98fa1e68fd0 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -103,10 +103,10 @@ NTSTATUS check_access_fsp(const struct files_struct *fsp, The canonical "check access" based on object handle or path function. ********************************************************************/ -NTSTATUS check_access(connection_struct *conn, - files_struct *fsp, - const struct smb_filename *smb_fname, - uint32_t access_mask) +static NTSTATUS check_access(connection_struct *conn, + files_struct *fsp, + const struct smb_filename *smb_fname, + uint32_t access_mask) { NTSTATUS status;