summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-09-26 14:35:15 -0700
committerStefan Metzmacher <metze@samba.org>2013-10-13 12:43:32 +0200
commit4c82e8358ad8eaac008929aed4fc2a607afeca78 (patch)
treee6eb9095771f7125c7ecccb8591d4cc86d5f97c5 /source3
parent26b110300882210f9eac074412a20c3f1f38fece (diff)
downloadsamba-4c82e8358ad8eaac008929aed4fc2a607afeca78.tar.gz
samba-4c82e8358ad8eaac008929aed4fc2a607afeca78.tar.bz2
samba-4c82e8358ad8eaac008929aed4fc2a607afeca78.zip
smbd: Remove name_hash param from open_mode_check
This came from delete_on_close handling which was factored out. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/open.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 6255180ad1..5c050871a9 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -1121,7 +1121,6 @@ static bool has_delete_on_close(struct share_mode_lock *lck,
static NTSTATUS open_mode_check(connection_struct *conn,
struct share_mode_lock *lck,
- uint32_t name_hash,
uint32 access_mask,
uint32 share_access,
uint32 create_options,
@@ -2435,7 +2434,7 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn,
return NT_STATUS_SHARING_VIOLATION;
}
- status = open_mode_check(conn, lck, fsp->name_hash,
+ status = open_mode_check(conn, lck,
access_mask, share_access,
create_options, &file_existed);
@@ -3173,7 +3172,7 @@ static NTSTATUS open_directory(connection_struct *conn,
return NT_STATUS_DELETE_PENDING;
}
- status = open_mode_check(conn, lck, fsp->name_hash,
+ status = open_mode_check(conn, lck,
access_mask, share_access,
create_options, &dir_existed);