diff --git a/source3/smbd/globals.h b/source3/smbd/globals.h index 472aeee5bbf..14337e0c95b 100644 --- a/source3/smbd/globals.h +++ b/source3/smbd/globals.h @@ -221,10 +221,6 @@ NTSTATUS smbd_calculate_access_mask(connection_struct *conn, bool file_existed, uint32_t access_mask, uint32_t *access_mask_out); -NTSTATUS smbd_check_open_rights(struct connection_struct *conn, - const struct smb_filename *smb_fname, - uint32_t access_mask, - uint32_t *access_granted); void smbd_notify_cancel_by_smbreq(const struct smb_request *smbreq); diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 6ad85b752e4..976bb6fdb40 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -68,7 +68,7 @@ NTSTATUS smb1_file_se_access_check(struct connection_struct *conn, Check if we have open rights. ****************************************************************************/ -NTSTATUS smbd_check_open_rights(struct connection_struct *conn, +static NTSTATUS smbd_check_open_rights(struct connection_struct *conn, const struct smb_filename *smb_fname, uint32_t access_mask, uint32_t *access_granted)