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/reply.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/reply.c')
-rw-r--r-- | source3/smbd/reply.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 3b4ea09336..c84c077d58 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -5793,7 +5793,7 @@ static void rename_open_files(connection_struct *conn, bool did_rename = False; NTSTATUS status; - for(fsp = file_find_di_first(lck->id); fsp; + for(fsp = file_find_di_first(conn->sconn, lck->id); fsp; fsp = file_find_di_next(fsp)) { /* fsp_name is a relative path under the fsp. To change this for other sharepaths we need to manipulate relative paths. */ @@ -6068,7 +6068,8 @@ NTSTATUS rename_internals_fsp(connection_struct *conn, if (dst_exists) { struct file_id fileid = vfs_file_id_from_sbuf(conn, &smb_fname_dst->st); - files_struct *dst_fsp = file_find_di_first(fileid); + files_struct *dst_fsp = file_find_di_first(conn->sconn, + fileid); /* The file can be open when renaming a stream */ if (dst_fsp && !new_is_stream) { DEBUG(3, ("rename_internals_fsp: Target file open\n")); |