s3: Remove smbd_server_conn from file_find_subpath
[ira/wip.git] / source3 / smbd / files.c
index 98afd77bcc926a09a9a701b83d2024eaaa551a68..b1e89bab88829e5807f10556382504d0d6b0fd59 100644 (file)
@@ -370,7 +370,7 @@ bool file_find_subpath(files_struct *dir_fsp)
 
        dlen = strlen(d_fullname);
 
-       for (fsp=smbd_server_conn->files;fsp;fsp=fsp->next) {
+       for (fsp=dir_fsp->conn->sconn->files; fsp; fsp=fsp->next) {
                char *d1_fullname;
 
                if (fsp == dir_fsp) {