Dynamic address problem

Allen, John L. ALLENJO5 at mail.northgrum.com
Wed Apr 24 05:48:01 EST 2002


Try this patch (against rsync 2.5.5):

#-----
$ gdiff -u clientname.c.orig clientname.c
--- clientname.c.orig   Fri Jan 25 17:59:37 2002
+++ clientname.c        Mon Apr  1 13:32:10 2002
@@ -240,7 +240,7 @@
        hints.ai_family = ss_family;
        hints.ai_flags = AI_CANONNAME;
        hints.ai_socktype = SOCK_STREAM;
-       error = getaddrinfo(name_buf, port_buf, &hints, &res0);
+       error = getaddrinfo(name_buf, NULL, &hints, &res0);
        if (error) {
                rprintf(FERROR,
                        RSYNC_NAME ": forward name lookup for %s failed:
%s\n",
#-----

(or simply change "port_buf" to "NULL" in the getaddrinfo call in the
check_name function in clientname.c)

This was a problem I found on AIX.  It may apply to other OSes as well.
Of course, you still have to be able to resolve the <host>.dyndns.org
addresses on the machine running the rsync daemon.  But as long as
you can ping them, you should be fine.

-----Original Message-----
From: Matthew Simpson [mailto:msimpson at market-research.com]
Sent: Wednesday, April 24, 2002 02:20 AM
To: rsync at lists.samba.org
Subject: Dynamic address problem


Hi All,

We have clients which dynamic IPs which we have setup with 
<host>.dyndns.org addresses. We  have added these to the rsync.conf 
'hosts allow=" but they are being denied access.. Is there  anyway 
around this?

Matt

-- 
To unsubscribe or change options:
http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html




More information about the rsync mailing list