diff options
author | ache <ache@FreeBSD.org> | 1997-08-05 20:18:39 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-08-05 20:18:39 +0000 |
commit | fbd1e32f9160ae4d4343706bf63cb07a2452250c (patch) | |
tree | 296ba1ca95bbef22a77abfbcdbb6c46fded9a911 /usr.bin/fetch/main.c | |
parent | ee162dd22f64c7b9653b65be570f0a70fc2607bd (diff) | |
download | FreeBSD-src-fbd1e32f9160ae4d4343706bf63cb07a2452250c.zip FreeBSD-src-fbd1e32f9160ae4d4343706bf63cb07a2452250c.tar.gz |
Add -t option which turns T/TCP off as workaround for some broken servers
Submitted by: Marc Slemko <marcs@znep.com>
Diffstat (limited to 'usr.bin/fetch/main.c')
-rw-r--r-- | usr.bin/fetch/main.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/fetch/main.c b/usr.bin/fetch/main.c index a45486e..c584065 100644 --- a/usr.bin/fetch/main.c +++ b/usr.bin/fetch/main.c @@ -24,7 +24,7 @@ * SUCH DAMAGE. */ -/* $Id: main.c,v 1.40 1997/07/02 06:28:32 charnier Exp $ */ +/* $Id: main.c,v 1.41 1997/07/25 19:35:44 wollman Exp $ */ #include <sys/types.h> @@ -73,7 +73,7 @@ main(int argc, char *const *argv) fs.fs_verbose = 1; change_to_dir = file_to_get = hostname = 0; - while ((c = getopt(argc, argv, "abc:D:f:h:HilLmMnNo:pPqRrT:vV:")) != -1) { + while ((c = getopt(argc, argv, "abc:D:f:h:HilLmMnNo:pPqRrtT:vV:")) != -1) { switch (c) { case 'D': case 'H': case 'I': case 'N': case 'L': case 'V': break; /* ncftp compatibility */ @@ -130,6 +130,10 @@ main(int argc, char *const *argv) fs.fs_precious = 1; break; + case 't': + fs.fs_use_connect = 1; + break; + case 'T': /* strtol sets errno to ERANGE in the case of overflow */ errno = 0; |