From e25055c0752ac5483c82035ebf36e0c1bfd07279 Mon Sep 17 00:00:00 2001 From: Martynas Venckus Date: Sun, 15 Jun 2008 04:43:21 +0000 Subject: accept empty password, since that's exactly what rfc1738 tells us to do; theo agrees, millert oks --- usr.bin/ftp/fetch.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/ftp/fetch.c b/usr.bin/ftp/fetch.c index 64de13553fe..0c6cdf795d4 100644 --- a/usr.bin/ftp/fetch.c +++ b/usr.bin/ftp/fetch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fetch.c,v 1.76 2008/06/15 03:11:28 martynas Exp $ */ +/* $OpenBSD: fetch.c,v 1.77 2008/06/15 04:43:20 martynas Exp $ */ /* $NetBSD: fetch.c,v 1.14 1997/08/18 10:20:20 lukem Exp $ */ /*- @@ -38,7 +38,7 @@ */ #if !defined(lint) && !defined(SMALL) -static const char rcsid[] = "$OpenBSD: fetch.c,v 1.76 2008/06/15 03:11:28 martynas Exp $"; +static const char rcsid[] = "$OpenBSD: fetch.c,v 1.77 2008/06/15 04:43:20 martynas Exp $"; #endif /* not lint and not SMALL */ /* @@ -898,7 +898,7 @@ auto_fetch(int argc, char *argv[], char *outfile) goto bad_ftp_url; } - if (EMPTYSTRING(username) || EMPTYSTRING(pass)) { + if (EMPTYSTRING(username)) { bad_ftp_url: warnx("Invalid URL: %s", argv[argpos]); rval = argpos + 1; -- cgit v1.2.3