summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorMartynas Venckus <martynas@cvs.openbsd.org>2009-08-03 21:34:55 +0000
committerMartynas Venckus <martynas@cvs.openbsd.org>2009-08-03 21:34:55 +0000
commitf7a53f2b43cd919d19feaca58ed0f730e9d8744c (patch)
treebff8f0e5020e5e0d72274eac27755e03c2a6bb18 /usr.bin
parent3d312e7a6af452b78024f691cee0a7f3e3e13698 (diff)
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@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ftp/fetch.c8
1 files changed, 4 insertions, 4 deletions
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;
}