rsync 2.6.2 --daemon Problem
Paul Slootman
paul at debian.org
Wed May 5 08:02:41 GMT 2004
On Tue 04 May 2004, Gregory Symons wrote:
>
> I've got the exact same problem here. For me at least,it appears that rsync is
> trying to bind to the same address twice. Below is an excerpt from
> 'strace rsync --daemon':
[snip]
>
> I haven't really done any network programming, so I'm not exactly sure what's going on
> in this section of the code, but it looks like rsync tries to set a flag on the IPV6
> socket indicating that its only to be used for IPV6. In this case the IPV6 socket is for
Setting that flag appears to fail on your system, because no IPV6 is
available perhaps? (It works on mine...)
If that's the root cause of the problem, skipping the IPV6 socket when
that call fails should suffice. Try the followng patch.
Paul Slootman
--- socket.c.orig 2004-04-14 18:51:48.000000000 +0200
+++ socket.c 2004-05-05 10:00:11.000000000 +0200
@@ -379,8 +379,10 @@
#ifdef IPV6_V6ONLY
if (resp->ai_family == AF_INET6) {
- setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY,
- (char *)&one, sizeof one);
+ if(setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY,
+ (char *)&one, sizeof one) < 0) {
+ continue;
+ }
}
#endif
More information about the rsync
mailing list