Daemon and IPv6 bug report

Vidar Madsen vidar at swiff.no
Sun Jun 6 22:26:44 GMT 2004

Hi all.

I'm just reporting some strange (fatal) behaviour when running
rsync --daemon on an IPv6-enabled box. It gets a fatal error
when trying to bind to the same address twice.

strace output:

bind(4, {sa_family=AF_INET6, sin6_port=htons(873), inet_pton(AF_INET6, "::", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = 0
bind(5, {sa_family=AF_INET, sin_port=htons(873), sin_addr=inet_addr("")}, 16) = 0
listen(4, 5)                            = 0
listen(5, 5)                            = -1 EADDRINUSE (Address already in use)

The workaround is very simple; use --address (or "::") to keep it
from binding twice.


More information about the rsync mailing list