diff options
author | Martynas Venckus <martynas@cvs.openbsd.org> | 2008-06-15 04:43:21 +0000 |
---|---|---|
committer | Martynas Venckus <martynas@cvs.openbsd.org> | 2008-06-15 04:43:21 +0000 |
commit | e25055c0752ac5483c82035ebf36e0c1bfd07279 (patch) | |
tree | 18fac2eb49a28a6bb954794919362c0762857bec /usr.bin/ftp/fetch.c | |
parent | 68286c95d107239e71e467d08aff75fa9d85c6fd (diff) |
accept empty password, since that's exactly what rfc1738 tells us
to do; theo agrees, millert oks
Diffstat (limited to 'usr.bin/ftp/fetch.c')
-rw-r--r-- | usr.bin/ftp/fetch.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |