diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-01-04 17:15:13 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-01-04 17:15:13 +0000 |
commit | ebcd0218c5a20ddfb30c8c4a71531433140a2c4a (patch) | |
tree | ea85d6dda4c584d033228248ae6dce8fc3e06da2 /usr.bin/ftp/fetch.c | |
parent | 322624c4e7fc3b32b3439bc2e4c9c498182fcd23 (diff) |
fix file:// URL support; broken by KAME support
Diffstat (limited to 'usr.bin/ftp/fetch.c')
-rw-r--r-- | usr.bin/ftp/fetch.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/ftp/fetch.c b/usr.bin/ftp/fetch.c index ecae9647d83..3a7afad2118 100644 --- a/usr.bin/ftp/fetch.c +++ b/usr.bin/ftp/fetch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fetch.c,v 1.25 1999/12/08 12:57:06 itojun Exp $ */ +/* $OpenBSD: fetch.c,v 1.26 2000/01/04 17:15:12 deraadt Exp $ */ /* $NetBSD: fetch.c,v 1.14 1997/08/18 10:20:20 lukem Exp $ */ /*- @@ -38,7 +38,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: fetch.c,v 1.25 1999/12/08 12:57:06 itojun Exp $"; +static char rcsid[] = "$OpenBSD: fetch.c,v 1.26 2000/01/04 17:15:12 deraadt Exp $"; #endif /* not lint */ /* @@ -779,9 +779,9 @@ int isurl(p) const char *p; { - if (strncasecmp(p, FTP_URL, sizeof(FTP_URL) - 1) == 0 - || strncasecmp(p, HTTP_URL, sizeof(HTTP_URL) - 1) == 0) { + if (strncasecmp(p, FTP_URL, sizeof(FTP_URL) - 1) == 0 || + strncasecmp(p, HTTP_URL, sizeof(HTTP_URL) - 1) == 0 || + strncasecmp(p, FILE_URL, sizeof(FILE_URL) - 1) == 0) return 1; - } return 0; } |