Gerben Wierda
2008-May-24 13:00 UTC
3.02 bug? Symlink ->foo changed to ->/rsyncd-munged/foo
On Mac OS X 10.5.2 I run rsync to keep a couple of instances of my / usr/local tree in sync. With Apple's rsync I run (e.g.): sudo /usr/bin/rsync --rsync-path=/usr/bin/rsync -E --progress -avu -- delete --dry-run --exclude=TeXLive-working-copy/ --exclude=context- update/ --exclude=.Spotlight-V100/ --exclude=.fseventsd/ \ -e "ssh -i /Users/gerben/.ssh/id_rsync -l root" \ ""/usr/local/gwTeX-new/ \ vanroodewierda::usrlocal/gwTeX-new/ I installed rsync 3.0.2 recently to try out if I can get rid of th efact that Apple's rsync syncs metadata even if they have not changed, So i installed it on source and destination machine, On the destination machine, my ssh authorized_keys contains command="/usr/bin/rsync --server --daemon .",no-port-forwarding,no-X11- forwarding,no-agent-forwarding ssh-dss etc. etc. which I change to command="/usr/local/bin/rsync --server --daemon .",no-port- forwarding,no-X11-forwarding,no-agent-forwarding ssh-dss if I want to run the new rsync. On the client I then run sudo /usr/local/bin/rsync --rsync-path=/usr/local/bin/rsync -H -A -X - e ssh -avu --progress --delete --dry-run --exclude=TeXLive-working- copy/ --exclude=context-update/ --exclude=.Spotlight-V100/ -- exclude=.fseventsd/ \ -e "ssh -i /Users/gerben/.ssh/id_rsync -l root" \ ""/usr/local/gwTeX-new/ \ vanroodewierda::usrlocal/gwTeX-new/ The result of this was that rsync started to sync symlinks that were unchanged and what is worse it damaged them in the process: On source and destination machine to start with: hedwig:~ gerben$ ls -l /usr/local/gwTeX-new/bin/powerpc-darwin/mex lrwxrwxrwx 1 501 staff 6 May 19 01:55 /usr/local/gwTeX-new/bin/ powerpc-darwin/mex -> pdftex After running rsync 3.02 on the target machine: bash-3.2# ls -l /usr/local/gwTeX-new/bin/powerpc-darwin/mex lrwxrwxrwx 1 sysbh staff 21 May 19 01:55 /usr/local/gwTeX-new/bin/ powerpc-darwin/mex -> /rsyncd-munged/pdftex After repairing with stock Mac OS X rsync: bash-3.2# ls -l /usr/local/gwTeX-new/bin/powerpc-darwin/mex lrwxrwxrwx 1 sysbh staff 6 May 24 14:31 /usr/local/gwTeX-new/bin/ powerpc-darwin/mex -> pdftex This looks like a bug to me. G
Wayne Davison
2008-May-24 16:01 UTC
3.02 bug? Symlink ->foo changed to ->/rsyncd-munged/foo
On Sat, May 24, 2008 at 02:44:33PM +0200, Gerben Wierda wrote:> This looks like a bug to me.Nope. Use "man rsyncd.conf" or read the manpage on-line (it's linked on the front page of the rsync website): http://rsync.samba.org/ftp/rsync/rsyncd.conf.html This change was also announced in a security advisory and is on the security page of the website. So, if you don't need that safety feature enabled for your situation, set "munge symlinks = no" in your daemon config file. ..wayne..
Apparently Analagous Threads
- Re: replicator: Panic: data stack: Out of memory when allocating 268435496 bytes
- replicator: Panic: data stack: Out of memory when allocating 268435496 bytes
- Rsync 2.6.3 does not show to be deleted files. Bug?
- Rsync, Cygwin, & SSH: ntsec OR nontsec?
- Collins Master Dictionary (closer yet)