[Bug 12036] New: Multiple --link-dest, --copy-dest, or --compare-dest flags produce incorrect behavior

samba-bugs at samba.org samba-bugs at samba.org
Mon Jul 25 22:52:42 UTC 2016


https://bugzilla.samba.org/show_bug.cgi?id=12036

            Bug ID: 12036
           Summary: Multiple --link-dest, --copy-dest, or --compare-dest
                    flags produce incorrect behavior
           Product: rsync
           Version: 3.1.2
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: core
          Assignee: wayned at samba.org
          Reporter: ckuehl at ocf.berkeley.edu
        QA Contact: rsync-qa at samba.org

Created attachment 12288
  --> https://bugzilla.samba.org/attachment.cgi?id=12288&action=edit
reproduction

We have observed what seems like incorrect behavior when using a command like
this:

    rsync -avc --link-dest=../copy_dest/good --link-dest=../copy_dest/bad src/
dest

with a directory stucture that looks like this:

    .
    ├── copy_dest
    │   ├── bad
    │   │   └── file       # contains different content from src, but same
attributes (e.g. mtime)
    │   └── good
    │       └── file       # contains same content as src, but different
attributes (e.g. mtime)
    └── src
        └── file

Using the command above, we see that "bad/file" is hard-linked into "dest",
even though it is different from "file" in src.

I've attached repro.sh which reliably reproduces this for me on the latest
version of rsync.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.



More information about the rsync mailing list