version 1.178, 2019/11/14 23:48:37 |
version 1.179, 2019/11/18 04:37:35 |
|
|
* filling with stars |
* filling with stars |
*/ |
*/ |
for (host = 1 + strchr(proxyurl + 5, ':'); *host != '@'; |
for (host = 1 + strchr(proxyurl + 5, ':'); *host != '@'; |
host++) |
host++) |
*host = '*'; |
*host = '*'; |
|
|
host = path + 1; |
host = path + 1; |
|
|
warn("Writing %s", savefile); |
warn("Writing %s", savefile); |
signal(SIGINFO, oldinti); |
signal(SIGINFO, oldinti); |
goto cleanup_url_get; |
goto cleanup_url_get; |
} |
} else if (i == 0) |
else if (i == 0) |
|
break; |
break; |
} |
} |
if (hash && !progress) { |
if (hash && !progress) { |
|
|
warn("Writing %s", savefile); |
warn("Writing %s", savefile); |
signal(SIGINFO, oldinti); |
signal(SIGINFO, oldinti); |
goto cleanup_url_get; |
goto cleanup_url_get; |
} |
} else if (i == 0) |
else if (i == 0) |
|
break; |
break; |
} |
} |
if (hash && !progress) { |
if (hash && !progress) { |
|
|
break; |
break; |
bytes += rlen; |
bytes += rlen; |
for (cp = buf, wlen = rlen; wlen > 0; |
for (cp = buf, wlen = rlen; wlen > 0; |
wlen -= written, cp += written) { |
wlen -= written, cp += written) { |
if ((written = write(out, cp, wlen)) == -1) { |
if ((written = write(out, cp, wlen)) == -1) { |
warn("Writing output file"); |
warn("Writing output file"); |
return -1; |
return -1; |
|
|
} else |
} else |
hosttail = host; |
hosttail = host; |
|
|
port = strrchr(hosttail, ':'); /* find portnum */ |
port = strrchr(hosttail, ':'); /* find portnum */ |
if (port != NULL) |
if (port != NULL) |
*port++ = '\0'; |
*port++ = '\0'; |
if (!port) |
if (!port) |