summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ftp/fetch.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/ftp/fetch.c b/usr.bin/ftp/fetch.c
index c333d905153..1a843c31cc8 100644
--- a/usr.bin/ftp/fetch.c
+++ b/usr.bin/ftp/fetch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fetch.c,v 1.11 1997/04/28 21:10:06 millert Exp $ */
+/* $OpenBSD: fetch.c,v 1.12 1997/05/19 05:36:56 millert Exp $ */
/* $NetBSD: fetch.c,v 1.8 1997/04/21 18:45:47 lukem Exp $ */
/*-
@@ -38,7 +38,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: fetch.c,v 1.11 1997/04/28 21:10:06 millert Exp $";
+static char rcsid[] = "$OpenBSD: fetch.c,v 1.12 1997/05/19 05:36:56 millert Exp $";
#endif /* not lint */
/*
@@ -448,7 +448,9 @@ bad_ftp_url:
continue;
}
*pass++ = '\0';
- cp = strpbrk(pass, ":@/");
+ /* XXX - assumes no '@' in pathname */
+ if ((cp = strrchr(pass, '@')) == NULL)
+ cp = strpbrk(pass, ":@/");
if (cp == NULL || *cp == '/') {
portnum = pass;
pass = NULL;