Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

0 views
Skip to first unread message

samba...@samba.org

unread,
Jul 25, 2016, 6:54:16 PM7/25/16
to
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: way...@samba.org
Reporter: cku...@ocf.berkeley.edu
QA Contact: rsyn...@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.

--
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

0 new messages