smbd: Make "check_access()" static to trans2.c
authorVolker Lendecke <vl@samba.org>
Sun, 14 Apr 2019 09:41:49 +0000 (11:41 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 3 May 2019 22:34:16 +0000 (22:34 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/proto.h
source3/smbd/trans2.c

index 68568e1bb3d9693a4a79547770950a826dc34b57..05208166ebf0fdf2dabaa58135c307b8c5136fb7 100644 (file)
@@ -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);
index fe406adb58f56c3b29da09fbb7181a9ba4ee9677..98fa1e68fd0433ea287f90945cd233a3cd1268a8 100644 (file)
@@ -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;