]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
If rsync_port is 0, set it to RSYNC_PORT.
authorWayne Davison <wayned@samba.org>
Wed, 8 Dec 2004 17:11:15 +0000 (17:11 +0000)
committerWayne Davison <wayned@samba.org>
Wed, 8 Dec 2004 17:11:15 +0000 (17:11 +0000)
clientserver.c

index ceb53d1e22662e9339e458db267e70103f90e16e..c8ba5d8e74cfd67a3350515e4bf69035355d9792 100644 (file)
@@ -88,6 +88,9 @@ int start_socket_client(char *host, char *path, int argc, char *argv[])
                *p = '\0';
        }
 
+       if (rsync_port == 0)
+               rsync_port = RSYNC_PORT;
+
        fd = open_socket_out_wrapped(host, rsync_port, bind_address,
                                     default_af_hint);
        if (fd == -1)