version 1.5, 1996/06/26 05:33:38 |
version 1.6, 1996/09/03 18:00:06 |
|
|
*/ |
*/ |
/*#include <sys/ioctl.h>*/ |
/*#include <sys/ioctl.h>*/ |
#include <sys/types.h> |
#include <sys/types.h> |
|
#include <sys/file.h> |
#include <sys/socket.h> |
#include <sys/socket.h> |
|
#include <netinet/in.h> |
|
|
#include <arpa/ftp.h> |
#include <arpa/ftp.h> |
|
|
|
|
ret = 1; |
ret = 1; |
goto bail; |
goto bail; |
} |
} |
|
if (!strncmp(host, "http://", strlen("http://"))) { |
|
http_fetch(host); |
|
goto bail; |
|
} |
if (strncmp(host, "ftp://", sizeof("ftp://")-1) == 0) { |
if (strncmp(host, "ftp://", sizeof("ftp://")-1) == 0) { |
host += sizeof("ftp://") - 1; |
host += sizeof("ftp://") - 1; |
p = strchr(host, '/'); |
p = strchr(host, '/'); |
|
|
|
|
/* get ready for the next file */ |
/* get ready for the next file */ |
bail: |
bail: |
if (bufp) |
if (bufp) { |
free(bufp); |
free(bufp); |
|
bufp = NULL; |
|
} |
if (connected) |
if (connected) |
disconnect(1, xargv); |
disconnect(1, xargv); |
--argc; |
--argc; |