Bug 12752 - Copy chunk fails if source and destination file are not on the same share
Summary: Copy chunk fails if source and destination file are not on the same share
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: File services (show other bugs)
Version: unspecified
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Ralph Böhme
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-21 08:18 UTC by Ralph Böhme
Modified: 2017-07-04 20:06 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralph Böhme 2017-04-21 08:18:45 UTC
We have a check in file_fsp_get() that causes this:

        if (smb2req->tcon->compat != fsp->conn) {
                return NULL;
        }

Windows allows such copy-chunk request, so we have to relax the above constraint, at least for fsctl_srv_copychunk_send().
Comment 1 Stefan Metzmacher 2017-07-04 20:06:04 UTC
Fixed with 492930779a228d3fddfc584141dace393c7f5ebb in 4.7.0rc1 and master