=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ftp/fetch.c,v retrieving revision 1.93 retrieving revision 1.94 diff -c -r1.93 -r1.94 *** src/usr.bin/ftp/fetch.c 2009/07/27 23:11:26 1.93 --- src/usr.bin/ftp/fetch.c 2009/08/03 21:34:54 1.94 *************** *** 1,4 **** ! /* $OpenBSD: fetch.c,v 1.93 2009/07/27 23:11:26 martynas Exp $ */ /* $NetBSD: fetch.c,v 1.14 1997/08/18 10:20:20 lukem Exp $ */ /*- --- 1,4 ---- ! /* $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,174 **** } if (isftpurl) goto noftpautologin; ! warnx("Invalid URL (no `/' after host): %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); goto cleanup_url_get; } } --- 161,174 ---- } if (isftpurl) goto noftpautologin; ! warnx("No `/' after host (use -o): %s", origline); goto cleanup_url_get; } *path++ = '\0'; if (EMPTYSTRING(path) && !outfile) { if (isftpurl) goto noftpautologin; ! warnx("No filename after host (use -o): %s", origline); goto cleanup_url_get; } } *************** *** 186,192 **** if (EMPTYSTRING(savefile)) { if (isftpurl) goto noftpautologin; ! warnx("Invalid URL (no file after directory): %s", origline); goto cleanup_url_get; } --- 186,192 ---- if (EMPTYSTRING(savefile)) { if (isftpurl) goto noftpautologin; ! warnx("No filename after directory (use -o): %s", origline); goto cleanup_url_get; }