From 75c6e0e5c7c17ab3ea78e09c226e2fb3472d1e40 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 27 Sep 2010 04:05:25 +0200 Subject: s3: Lift smbd_server_conn from file_find_di_first --- source3/smbd/trans2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/smbd/trans2.c') diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 304476476e..0888ded21a 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -4314,7 +4314,7 @@ NTSTATUS smbd_do_qfilepathinfo(connection_struct *conn, /* Do we have this path open ? */ files_struct *fsp1; struct file_id fileid = vfs_file_id_from_sbuf(conn, psbuf); - fsp1 = file_find_di_first(fileid); + fsp1 = file_find_di_first(conn->sconn, fileid); if (fsp1 && fsp1->initial_allocation_size) { allocation_size = SMB_VFS_GET_ALLOC_SIZE(conn, fsp1, psbuf); } @@ -6987,7 +6987,7 @@ static NTSTATUS smb_set_file_unix_basic(connection_struct *conn, } id = vfs_file_id_from_sbuf(conn, &sbuf); - for(all_fsps = file_find_di_first(id); all_fsps; + for(all_fsps = file_find_di_first(conn->sconn, id); all_fsps; all_fsps = file_find_di_next(all_fsps)) { /* * We're setting the time explicitly for UNIX. -- cgit