diff options
author | Wayne Davison <wayned@samba.org> | 2020-04-05 19:32:40 -0700 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2020-04-05 19:34:27 -0700 |
commit | 70cbc66b7f504f9ba5f396aeafa38aa8d483b799 (patch) | |
tree | 18971c90022257bb2dfbc6fbafd18ccddf70626b /options.c | |
parent | b63276e70fb82de7cf30cf29100acfb7650c4f43 (diff) | |
download | rsync-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } } |