diff options
author | Volker Lendecke <vl@samba.org> | 2010-09-27 04:05:25 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-09-28 07:36:17 +0200 |
commit | 75c6e0e5c7c17ab3ea78e09c226e2fb3472d1e40 (patch) | |
tree | ff0d9378187829c9caed8ddfbcc58745394ed8d7 /source3/smbd/open.c | |
parent | b448e42de4070410eddbe2fa0085b9328a301159 (diff) | |
download | samba-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.c | 5 |
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", |