From 3cf3d54fbc3c28e40d3e23543c0fef1c9e81559a Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 3 Oct 2010 17:33:11 +0200 Subject: s3: Remove smbd_server_conn from validate_my_share_entries --- source3/smbd/open.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'source3') diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 00bee5b862..d7927b7502 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -743,7 +743,8 @@ sa = 0x%x, share = 0x%x\n", (num), (unsigned int)(am), (unsigned int)(right), (u } #if defined(DEVELOPER) -static void validate_my_share_entries(int num, +static void validate_my_share_entries(struct smbd_server_connection *sconn, + int num, struct share_mode_entry *share_entry) { files_struct *fsp; @@ -765,7 +766,7 @@ static void validate_my_share_entries(int num, return; } - fsp = file_find_dif(smbd_server_conn, share_entry->id, + fsp = file_find_dif(sconn, share_entry->id, share_entry->share_file_id); if (!fsp) { DEBUG(0,("validate_my_share_entries: PANIC : %s\n", @@ -856,7 +857,8 @@ static NTSTATUS open_mode_check(connection_struct *conn, #if defined(DEVELOPER) for(i = 0; i < lck->num_share_modes; i++) { - validate_my_share_entries(i, &lck->share_modes[i]); + validate_my_share_entries(conn->sconn, i, + &lck->share_modes[i]); } #endif -- cgit