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: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]

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.

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to