version 1.51, 2004/09/16 04:39:16 |
version 1.52, 2005/04/05 22:37:00 |
|
|
{ |
{ |
char *xargv[5]; |
char *xargv[5]; |
char *cp, *line, *host, *dir, *file, *portnum; |
char *cp, *line, *host, *dir, *file, *portnum; |
char *user, *pass; |
char *user, *pass, *pathstart; |
char *ftpproxy, *httpproxy; |
char *ftpproxy, *httpproxy; |
int rval, xargc; |
int rval, xargc; |
volatile int argpos; |
volatile int argpos; |
|
|
/* split off host[:port] if there is */ |
/* split off host[:port] if there is */ |
if (cp) { |
if (cp) { |
portnum = strchr(cp, ':'); |
portnum = strchr(cp, ':'); |
|
pathstart = strchr(cp, '/'); |
|
/* : in path is not a port # indicator */ |
|
if (portnum && pathstart && |
|
pathstart < portnum) |
|
portnum = NULL; |
|
|
if (!portnum) |
if (!portnum) |
; |
; |
else { |
else { |