Return to fetch.c CVS log | Up to [local] / src / usr.bin / ftp |
version 1.145, 2016/01/28 21:31:50 | version 1.146, 2016/05/06 22:06:09 | ||
---|---|---|---|
|
|
||
pass = urldecode(pass); | pass = urldecode(pass); | ||
} | } | ||
#ifdef INET6 | |||
/* check [host]:port, or [host] */ | /* check [host]:port, or [host] */ | ||
if (host[0] == '[') { | if (host[0] == '[') { | ||
cp = strchr(host, ']'); | cp = strchr(host, ']'); | ||
|
|
||
cp = host; | cp = host; | ||
} else | } else | ||
cp = host; | cp = host; | ||
#else | |||
cp = host; | |||
#endif | |||
/* split off host[:port] if there is */ | /* split off host[:port] if there is */ | ||
if (cp) { | if (cp) { |