Return to main.c CVS log | Up to [local] / src / usr.bin / rsync |
version 1.51, 2020/12/15 08:20:42 | version 1.52, 2021/03/22 11:16:05 | ||
---|---|---|---|
|
|
||
f->module = cp; | f->module = cp; | ||
if ((cp = strchr(f->module, '/')) != NULL) | if ((cp = strchr(f->module, '/')) != NULL) | ||
*cp = '\0'; | *cp = '\0'; | ||
if ((cp = strchr(f->host, ':'))) { | if ((cp = strchr(f->host, ':')) != NULL) { | ||
/* host:port --> extract port */ | /* host:port --> extract port */ | ||
*cp++ = '\0'; | *cp++ = '\0'; | ||
opts->port = cp; | opts->port = cp; |