DO NOT REPLY [Bug 4412] New: --dry-run output inaccurate due to implied symlink

samba-bugs at samba.org samba-bugs at samba.org
Sun Feb 25 17:12:16 GMT 2007


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

           Summary: --dry-run output inaccurate due to implied symlink
           Product: rsync
           Version: 2.6.9
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: core
        AssignedTo: wayned at samba.org
        ReportedBy: hashproduct+rsync at gmail.com
         QAContact: rsync-qa at samba.org


When a symlink has contents in the file list (which happens for implied
symlinks from --relative), rsync's dry-run output can be inaccurate because it
naively tries to follow the symlink when processing the contents, even though
it has not actually created the symlink.

I reproduced this as follows in an empty directory:

$ mkdir -p src/a dest/a
$ ln -s a src/b
$ echo data >src/a/foo
$ rsync -a src/a/ dest/a/
$ find . -ls
1880052  0 drwx------  4 matt  matt  96 Feb 25 12:07 .
1879989  0 drwx------  3 matt  matt  96 Feb 25 12:07 ./src
1880376  0 drwx------  2 matt  matt  72 Feb 25 12:08 ./src/a
1880793  4 -rw-------  1 matt  matt   5 Feb 25 12:08 ./src/a/foo
1880792  0 lrwxrwxrwx  1 matt  matt   1 Feb 25 12:07 ./src/b -> a
1880779  0 drwx------  3 matt  matt  72 Feb 25 12:07 ./dest
1880784  0 drwx------  2 matt  matt  72 Feb 25 12:08 ./dest/a
1880794  4 -rw-------  1 matt  matt   5 Feb 25 12:08 ./dest/a/foo
$ rsync -ni -a --relative src/./b/foo dest/
cL+++++++++ b -> a
>f+++++++++ b/foo
$ rsync -i -a --relative src/./b/foo dest/
cL+++++++++ b -> a

Notice that rsync itemized creation of b/foo on the dry run but not on the real
run.

I tried to test this with the current CVS rsync, but it hung on the dry run,
which probably indicates a separate bug.


-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


More information about the rsync mailing list