summaryrefslogtreecommitdiff
path: root/source3/smbd/open.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-09-27 04:05:25 +0200
committerVolker Lendecke <vl@samba.org>2010-09-28 07:36:17 +0200
commit75c6e0e5c7c17ab3ea78e09c226e2fb3472d1e40 (patch)
treeff0d9378187829c9caed8ddfbcc58745394ed8d7 /source3/smbd/open.c
parentb448e42de4070410eddbe2fa0085b9328a301159 (diff)
downloadsamba-75c6e0e5c7c17ab3ea78e09c226e2fb3472d1e40.tar.gz
samba-75c6e0e5c7c17ab3ea78e09c226e2fb3472d1e40.tar.bz2
samba-75c6e0e5c7c17ab3ea78e09c226e2fb3472d1e40.zip
s3: Lift smbd_server_conn from file_find_di_first
Diffstat (limited to 'source3/smbd/open.c')
-rw-r--r--source3/smbd/open.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 44de5a3cd0..00bee5b862 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -1165,7 +1165,7 @@ NTSTATUS fcb_or_dos_open(struct smb_request *req,
DEBUG(5,("fcb_or_dos_open: attempting old open semantics for "
"file %s.\n", smb_fname_str_dbg(smb_fname)));
- for(fsp = file_find_di_first(id); fsp;
+ for(fsp = file_find_di_first(conn->sconn, id); fsp;
fsp = file_find_di_next(fsp)) {
DEBUG(10,("fcb_or_dos_open: checking file %s, fd = %d, "
@@ -2773,7 +2773,8 @@ void msg_file_was_renamed(struct messaging_context *msg,
sharepath, smb_fname_str_dbg(smb_fname),
file_id_string_tos(&id)));
- for(fsp = file_find_di_first(id); fsp; fsp = file_find_di_next(fsp)) {
+ for(fsp = file_find_di_first(smbd_server_conn, id); fsp;
+ fsp = file_find_di_next(fsp)) {
if (memcmp(fsp->conn->connectpath, sharepath, sp_len) == 0) {
DEBUG(10,("msg_file_was_renamed: renaming file fnum %d from %s -> %s\n",