summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2004-12-06 17:57:06 +0000
committerWayne Davison <wayned@samba.org>2004-12-06 17:57:06 +0000
commit76cb2a3a4f2708c07e6ac81a23b2d39aad419bbe (patch)
tree0a06848a3299f36ba5559b1ed1e978392b3efd2a /main.c
parent9bef934c760e181f62198326c091ea910bc9f39c (diff)
downloadrsync-76cb2a3a4f2708c07e6ac81a23b2d39aad419bbe.tar.gz
rsync-76cb2a3a4f2708c07e6ac81a23b2d39aad419bbe.tar.bz2
rsync-76cb2a3a4f2708c07e6ac81a23b2d39aad419bbe.zip
Set default port value for a :: file-spec without a port number.
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/main.c b/main.c
index 7ff33f55..4c088415 100644
--- a/main.c
+++ b/main.c
@@ -829,7 +829,8 @@ static int start_client(int argc, char *argv[])
if (p) {
rsync_port = atoi(p+1);
*p = '\0';
- }
+ } else
+ rsync_port = RSYNC_PORT;
return start_socket_client(host, path, argc-1, argv+1);
}
@@ -887,7 +888,8 @@ static int start_client(int argc, char *argv[])
if (p) {
rsync_port = atoi(p+1);
*p = '\0';
- }
+ } else
+ rsync_port = RSYNC_PORT;
return start_socket_client(host, path, argc-1, argv);
}