diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-01-09 11:22:17 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-01-09 11:22:17 +0000 |
commit | 3eb2fb459a3e895e371cb549ddec1b1861dce194 (patch) | |
tree | bcd8ba4c602bd453fa54aa3c333d0dbe176449c7 /usr.bin/ftp | |
parent | b432494cdf109cf3e7ffd5a082fe7ac24385f7c2 (diff) |
HTTP fetches would always loop indefinitely
Diffstat (limited to 'usr.bin/ftp')
-rw-r--r-- | usr.bin/ftp/main.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/ftp/main.c b/usr.bin/ftp/main.c index 4fe86be6c2d..75764acf1d7 100644 --- a/usr.bin/ftp/main.c +++ b/usr.bin/ftp/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.12 1997/01/07 22:03:39 niklas Exp $ */ +/* $OpenBSD: main.c,v 1.13 1997/01/09 11:22:16 niklas Exp $ */ /* * Copyright (c) 1985, 1989, 1993, 1994 @@ -43,7 +43,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)main.c 8.6 (Berkeley) 10/9/94"; #else -static char rcsid[] = "$OpenBSD: main.c,v 1.12 1997/01/07 22:03:39 niklas Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.13 1997/01/09 11:22:16 niklas Exp $"; #endif #endif /* not lint */ @@ -187,7 +187,9 @@ main(argc, argv) goto bail; } if (!strncmp(host, "http://", sizeof("http://") - 1)) { - http_fetch(host); + ret = http_fetch(host); + argc--; + argv++; goto bail; } if (strncmp(host, "ftp://", sizeof("ftp://") - 1) == |