From f7a53f2b43cd919d19feaca58ed0f730e9d8744c Mon Sep 17 00:00:00 2001
From: Martynas Venckus <martynas@cvs.openbsd.org>
Date: Mon, 3 Aug 2009 21:34:55 +0000
Subject: tweak error message.  url is valid per rfc1738 and can now be
 fetchable with -o.  so point to it too.  requested by chris@ ok sthen@. 
 better halex@

---
 usr.bin/ftp/fetch.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'usr.bin')

diff --git a/usr.bin/ftp/fetch.c b/usr.bin/ftp/fetch.c
index 3370a81c897..40ddcdabc3f 100644
--- a/usr.bin/ftp/fetch.c
+++ b/usr.bin/ftp/fetch.c
@@ -1,4 +1,4 @@
-/*	$OpenBSD: fetch.c,v 1.93 2009/07/27 23:11:26 martynas Exp $	*/
+/*	$OpenBSD: fetch.c,v 1.94 2009/08/03 21:34:54 martynas Exp $	*/
 /*	$NetBSD: fetch.c,v 1.14 1997/08/18 10:20:20 lukem Exp $	*/
 
 /*-
@@ -161,14 +161,14 @@ url_get(const char *origline, const char *proxyenv, const char *outfile)
 			}
 			if (isftpurl)
 				goto noftpautologin;
-			warnx("Invalid URL (no `/' after host): %s", origline);
+			warnx("No `/' after host (use -o): %s", origline);
 			goto cleanup_url_get;
 		}
 		*path++ = '\0';
 		if (EMPTYSTRING(path) && !outfile) {
 			if (isftpurl)
 				goto noftpautologin;
-			warnx("Invalid URL (no file after host): %s", origline);
+			warnx("No filename after host (use -o): %s", origline);
 			goto cleanup_url_get;
 		}
 	}
@@ -186,7 +186,7 @@ noslash:
 	if (EMPTYSTRING(savefile)) {
 		if (isftpurl)
 			goto noftpautologin;
-		warnx("Invalid URL (no file after directory): %s", origline);
+		warnx("No filename after directory (use -o): %s", origline);
 		goto cleanup_url_get;
 	}
 
-- 
cgit v1.2.3