diff options
author | Wayne Davison <wayned@samba.org> | 2004-12-06 17:57:06 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2004-12-06 17:57:06 +0000 |
commit | 76cb2a3a4f2708c07e6ac81a23b2d39aad419bbe (patch) | |
tree | 0a06848a3299f36ba5559b1ed1e978392b3efd2a /main.c | |
parent | 9bef934c760e181f62198326c091ea910bc9f39c (diff) | |
download | rsync-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.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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); } |