s3: Remove smbd_server_conn from file_sync_all
authorVolker Lendecke <vl@samba.org>
Mon, 27 Sep 2010 02:13:22 +0000 (04:13 +0200)
committerVolker Lendecke <vl@samba.org>
Tue, 28 Sep 2010 05:36:17 +0000 (07:36 +0200)
source3/smbd/files.c

index b1e89bab88829e5807f10556382504d0d6b0fd59..ef0da8f1e4bb400cc68a1f1d2e76feefc936f44a 100644 (file)
@@ -407,7 +407,7 @@ void file_sync_all(connection_struct *conn)
 {
        files_struct *fsp, *next;
 
-       for (fsp=smbd_server_conn->files;fsp;fsp=next) {
+       for (fsp=conn->sconn->files; fsp; fsp=next) {
                next=fsp->next;
                if ((conn == fsp->conn) && (fsp->fh->fd != -1)) {
                        sync_file(conn, fsp, True /* write through */);