From 7e475d60f53f104292ac3b1c0015eeb52678c424 Mon Sep 17 00:00:00 2001 From: Mike Heffner Date: Tue, 27 Apr 2004 00:31:36 +0000 Subject: Import the latest (4/26/04) CVS lukemftp. This adds the ability to have a prefix string on the progressbar and brings in a patch by mux@ to fix the condition when connect() returns EINTR. Requested by: mux --- contrib/lukemftp/src/fetch.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'contrib/lukemftp/src/fetch.c') diff --git a/contrib/lukemftp/src/fetch.c b/contrib/lukemftp/src/fetch.c index c17a051e4001..abb89ce15946 100644 --- a/contrib/lukemftp/src/fetch.c +++ b/contrib/lukemftp/src/fetch.c @@ -1,4 +1,4 @@ -/* $NetBSD: fetch.c,v 1.144 2003/07/31 05:23:59 lukem Exp $ */ +/* $NetBSD: fetch.c,v 1.146 2003/12/10 12:34:28 lukem Exp $ */ /*- * Copyright (c) 1997-2003 The NetBSD Foundation, Inc. @@ -41,7 +41,7 @@ #include #ifndef lint -__RCSID("$NetBSD: fetch.c,v 1.144 2003/07/31 05:23:59 lukem Exp $"); +__RCSID("$NetBSD: fetch.c,v 1.146 2003/12/10 12:34:28 lukem Exp $"); #endif /* not lint */ /* @@ -246,7 +246,7 @@ url_decode(char *url) /* * Parse URL of form: - * ://[[:@]][:][/] + * ://[[:]@][:][/] * Returns -1 if a parse error occurred, otherwise 0. * It's the caller's responsibility to url_decode() the returned * user, pass and path. @@ -1303,7 +1303,6 @@ fetch_ftp(const char *url) if ((parse_url(url, "URL", &urltype, &user, &pass, &host, &port, &portnum, &path) == -1) || (user != NULL && *user == '\0') || - (pass != NULL && *pass == '\0') || EMPTYSTRING(host)) { warnx("Invalid URL `%s'", url); goto cleanup_fetch_ftp; -- cgit v1.2.3