From a30f84a21c9d4e702ae0faace9bdf435b9882af7 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 4 Nov 2011 14:37:26 -0700 Subject: [PATCH] Expose smbd_check_access_rights() to other modules. --- source3/smbd/open.c | 2 +- source3/smbd/proto.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/source3/smbd/open.c b/source3/smbd/open.c index b77f661cee7..bd022ecd599 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -60,7 +60,7 @@ static bool parent_override_delete(connection_struct *conn, Check if we have open rights. ****************************************************************************/ -static NTSTATUS smbd_check_access_rights(struct connection_struct *conn, +NTSTATUS smbd_check_access_rights(struct connection_struct *conn, struct smb_filename *smb_fname, uint32_t access_mask) { diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index f6d543972f4..ff56b15dd0b 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -580,6 +580,9 @@ void reply_nttranss(struct smb_request *req); /* The following definitions come from smbd/open.c */ +NTSTATUS smbd_check_access_rights(struct connection_struct *conn, + struct smb_filename *smb_fname, + uint32_t access_mask); NTSTATUS fd_close(files_struct *fsp); void change_file_owner_to_parent(connection_struct *conn, const char *inherit_from_dir, -- 2.34.1