summaryrefslogtreecommitdiff
path: root/options.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2020-04-07 19:21:37 -0700
committerWayne Davison <wayned@samba.org>2020-04-07 19:21:37 -0700
commite2aee6c4afcae8f05d92cbf27741981b259f2b21 (patch)
tree8bcece41ef76f8bd29fa272da18a569659e68646 /options.c
parent2598ca668b739c50f4206c06dc1c8d3a561b0866 (diff)
downloadrsync-e2aee6c4afcae8f05d92cbf27741981b259f2b21.tar.gz
Switch RSYNC_PORT to -1 in check_for_hostspec().
Diffstat (limited to 'options.c')
-rw-r--r--options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/options.c b/options.c
index 2db357e2..99d3627a 100644
--- a/options.c
+++ b/options.c
@@ -2937,7 +2937,7 @@ char *check_for_hostspec(char *s, char **host_ptr, int *port_ptr)
if (*path == ':') {
if (port_ptr && !*port_ptr)
- *port_ptr = RSYNC_PORT;
+ *port_ptr = -1;
return path + 1;
}
if (port_ptr)