s3: VFS: vfs_fruit. If we have an fsp, use it in preference to a pathname in vfs_stre...
authorJeremy Allison <jra@samba.org>
Fri, 4 Mar 2016 22:01:47 +0000 (14:01 -0800)
committerRalph Boehme <slow@samba.org>
Mon, 7 Mar 2016 16:58:16 +0000 (17:58 +0100)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_fruit.c

index 73b5f3a53b8971c679597c5e63519fd5ec13b583..e0d1fae06d68ae40aa55678585665db87f9d3a8e 100644 (file)
@@ -3791,7 +3791,7 @@ static void fruit_copy_chunk_done(struct tevent_req *subreq)
         * streams, because we're in vfs_fruit. We don't do this async
         * because streams are few and small.
         */
-       status = vfs_streaminfo(state->handle->conn, NULL,
+       status = vfs_streaminfo(state->handle->conn, state->src_fsp,
                                state->src_fsp->fsp_name->base_name,
                                req, &num_streams, &streams);
        if (tevent_req_nterror(req, status)) {