summaryrefslogtreecommitdiffstats
path: root/usr.bin/ftp/main.c
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2000-05-22 17:18:38 +0000
committerume <ume@FreeBSD.org>2000-05-22 17:18:38 +0000
commita9b64c96d9ae4ee08b83d18df111e57d62a78f6f (patch)
tree8c9b20777420d0b79d7748d1d23b34299f89fe54 /usr.bin/ftp/main.c
parent8bd18fb03ab0ec5c850f670812815b5b64f66aae (diff)
downloadFreeBSD-src-a9b64c96d9ae4ee08b83d18df111e57d62a78f6f.zip
FreeBSD-src-a9b64c96d9ae4ee08b83d18df111e57d62a78f6f.tar.gz
Replace isurl() with isipv6addr().
Reported by: Koji Kondo <koji@jp.above.net> Obtained from: NetBSD
Diffstat (limited to 'usr.bin/ftp/main.c')
-rw-r--r--usr.bin/ftp/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/ftp/main.c b/usr.bin/ftp/main.c
index 4460878..eb98a97 100644
--- a/usr.bin/ftp/main.c
+++ b/usr.bin/ftp/main.c
@@ -273,7 +273,7 @@ main(argc, argv)
#endif
if (argc > 0) {
- if (isurl(argv[0])) {
+ if (strchr(argv[0], ':') != NULL && ! isipv6addr(argv[0])) {
anonftp = 1; /* Handle "automatic" transfers. */
rval = auto_fetch(argc, argv);
if (rval >= 0) /* -1 == connected and cd-ed */
OpenPOWER on IntegriCloud