summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-10-03 17:33:11 +0200
committerVolker Lendecke <vl@samba.org>2010-10-03 18:17:09 +0200
commit3cf3d54fbc3c28e40d3e23543c0fef1c9e81559a (patch)
tree6666c80988aa30e58a851e7537d944e7fd9bb18b
parent924357ab524bdb296b86ee4e34b9a9669d1d5901 (diff)
downloadsamba-3cf3d54fbc3c28e40d3e23543c0fef1c9e81559a.tar.gz
samba-3cf3d54fbc3c28e40d3e23543c0fef1c9e81559a.tar.bz2
samba-3cf3d54fbc3c28e40d3e23543c0fef1c9e81559a.zip
s3: Remove smbd_server_conn from validate_my_share_entries
-rw-r--r--source3/smbd/open.c8
1 files changed, 5 insertions, 3 deletions
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