Ali Polatel
Fri, 22 Jan 2010 13:43:31 -0800
I've noticed a weirdness in rsync. Let me explain it briefly with an example. Below is a test script:
#!/bin/sh
cat >rsyncd.conf <<EOF
address = localhost
use chroot = no
hosts allow = localhost
[from]
path = /tmp/from
read only = yes
comment = r/o
EOF
RSYNC_CONNECT_PROG="rsync --address=localhost --config=rsyncd.conf --daemon" \
rsync -av --address=localhost rsync://localhost/from to
Looking at the code the daemon should bind to localhost not 0.0.0.0.
But strace shows the opposite:
a...@harikalardiyari> strace -fe bind ./test.sh
...
[pid 7279] bind(4, {sa_family=AF_INET, sin_port=htons(0),
sin_addr=inet_addr("0.0.0.0")}, 16) = 0
...
Is this a bug or am I misunderstanding something?
--
Regards,
Ali Polatel
--
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