Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Allow --port to be used in client mode (as well as daemon mode).
[rsync/rsync.git]
/
clientserver.c
diff --git
a/clientserver.c
b/clientserver.c
index
ceb53d1
..
c8ba5d8
100644
(file)
--- a/
clientserver.c
+++ b/
clientserver.c
@@
-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)