summaryrefslogtreecommitdiff
path: root/options.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2020-04-05 19:32:40 -0700
committerWayne Davison <wayned@samba.org>2020-04-05 19:34:27 -0700
commit70cbc66b7f504f9ba5f396aeafa38aa8d483b799 (patch)
tree18971c90022257bb2dfbc6fbafd18ccddf70626b /options.c
parentb63276e70fb82de7cf30cf29100acfb7650c4f43 (diff)
downloadrsync-70cbc66b7f504f9ba5f396aeafa38aa8d483b799.tar.gz
Set RSYNC_PORT in the env for a daemon-over-rsh connection.
Fixes bug #14163.
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 96e5ffba..2db357e2 100644
--- a/options.c
+++ b/options.c
@@ -2926,7 +2926,7 @@ char *check_for_hostspec(char *s, char **host_ptr, int *port_ptr)
*host_ptr = parse_hostspec(s + strlen(URL_PREFIX), &path, port_ptr);
if (*host_ptr) {
if (!*port_ptr)
- *port_ptr = RSYNC_PORT;
+ *port_ptr = -1; /* -1 indicates they want the default */
return path;
}
}