summaryrefslogtreecommitdiff
path: root/www/w3m/patches
diff options
context:
space:
mode:
authorkei <kei>2002-03-02 00:08:15 +0000
committerkei <kei>2002-03-02 00:08:15 +0000
commita3caab40bbbfcf7ae41ba5cc52c68ebd2da5b110 (patch)
tree16434e886f243c1752d307d359f6012c73319565 /www/w3m/patches
parentb5298e1048334fa8bd64d2b1dab8933dcb45b181 (diff)
downloadpkgsrc-a3caab40bbbfcf7ae41ba5cc52c68ebd2da5b110.tar.gz
* Update w3m package from 0.2.1-m17n-0.19 to 0.2.5-m17n-20020216 version.
Significant changes has been made. More info is in the ChnagLog file (~3000 lines) in distributed archive. Users of older versions are recommended to update. From NEWS file: ------------ w3m 0.3? * rc: max_load_image * rc: display_image, auto_image, image_scale, imgdisplay, imgsize * func: DISPLAY_IMAGE, STOP_IMAGE * w3m-img merged: w3m now can display images! see doc/README.img ---------------------------------------------------------------- w3m 0.2.5.1 - 2002-02-05 * backport from w3m/0.2.5+cvs-1.299 - fix inputAnswer() and no "ssl_forbid_method" [w3m-dev 02985] - fix SunOS 4.1.4 build problem [w3m-dev 02972] - fix problem with Netscape-Enterprise WWW-authenticate [w3m-dev 02968] ---------------------------------------------------------------- w3m 0.2.5 - 2002-01-31 * RFC2617: HTTP Digest authentication * rc: default_url=0(empty) 1(current URL) 2(link URL) * GOTO_RELATIVE (M-u) * highlight for incremental search * support migemo (romaji search) * use w3mmail.cgi for mailto: URL * support external URI loader * support -dump_extra ftp:// * new regex implementation ---------------------------------------------------------------- w3m 0.2.4 - 2002-01-07 * RFC2818 server identity check * incremental search (C-s, C-r) ---------------------------------------------------------------- w3m 0.2.3.2 - 2001-12-22 * fix security hole in w3m/scripts ---------------------------------------------------------------- w3m 0.2.3.1 - 2001-12-20 * sync with cvs repository * fix bug in configure ---------------------------------------------------------------- w3m 0.2.3 - 2001-12-20 * command line option: -help, -version * new libgc included * new runtime option use_mark, nextpage_topline, label_topline, vi_prec_num emacs_like_lineedit, ftppass_hostnamegen * RFC2732 support (IPv6) * new w3mhelp system * several configure changes * code cleanups, now gcc -Wall -Werror safe ---------------------------------------------------------------- w3m 0.2.2 - 2001-11-15 * sync with w3m 0.2.1-inu-1.5 * w3m maintained in sourceforge.net/projects/w3m ------------
Diffstat (limited to 'www/w3m/patches')
-rw-r--r--www/w3m/patches/patch-aa39
-rw-r--r--www/w3m/patches/patch-ab16
-rw-r--r--www/w3m/patches/patch-af38
-rw-r--r--www/w3m/patches/patch-ag41
-rw-r--r--www/w3m/patches/patch-ah24
-rw-r--r--www/w3m/patches/patch-ai17
-rw-r--r--www/w3m/patches/patch-aj52
7 files changed, 8 insertions, 219 deletions
diff --git a/www/w3m/patches/patch-aa b/www/w3m/patches/patch-aa
deleted file mode 100644
index 41fd95dd22c..00000000000
--- a/www/w3m/patches/patch-aa
+++ /dev/null
@@ -1,39 +0,0 @@
-$NetBSD: patch-aa,v 1.9 2001/05/01 00:31:25 kei Exp $
-
---- configure.orig Sat Apr 21 13:43:38 2001
-+++ configure Sat Apr 21 13:44:34 2001
-@@ -194,7 +194,7 @@
-
- find_ssl() {
- sslinclude=""
-- for i1 in /usr /usr/local
-+ for i1 in /usr /usr/local /usr/pkg
- do
- for i2 in /openssl /ssl /
- do
-@@ -907,7 +907,7 @@
- gclib=''
- gcinclude=''
- gctarget=''
--for libdir in /lib /usr/lib /usr/local/lib /usr/ucblib /usr/ccslib /usr/ccs/lib ${HOME}/lib
-+for libdir in /lib /usr/lib ${LOCALBASE}/lib /usr/local/lib /usr/ucblib /usr/ccslib /usr/ccs/lib ${HOME}/lib
- do
- if [ -f $libdir/libgc.a -o -f $libdir/libgc.so ] ; then
- echo "$libdir/libgc found"
-@@ -915,7 +915,7 @@
- break
- fi
- done
--for inc in /usr/include /usr/include/gc /usr/local/include /usr/local/include/gc ${HOME}/include
-+for inc in /usr/include /usr/include/gc ${LOCALBASE}/include /usr/local/include /usr/local/include/gc ${HOME}/include
- do
- if [ -f $inc/gc.h ]; then
- echo "$inc/gc.h found"
-@@ -1600,6 +1600,7 @@
- if [ `expr "$perl" : 'not found'` != 0 ]; then
- perl=/usr/local/bin/perl
- fi
-+perl=/usr/pkg/bin/perl
- if [ $sysname = CYGWIN ]; then
- cygwin=1
- else
diff --git a/www/w3m/patches/patch-ab b/www/w3m/patches/patch-ab
index 9eee5c0a173..36143331432 100644
--- a/www/w3m/patches/patch-ab
+++ b/www/w3m/patches/patch-ab
@@ -1,21 +1,21 @@
-$NetBSD: patch-ab,v 1.8 2001/05/01 00:31:25 kei Exp $
+$NetBSD: patch-ab,v 1.9 2002/03/02 00:08:16 kei Exp $
---- main.c.orig Fri Mar 23 11:14:58 2001
-+++ main.c Fri Mar 30 21:02:12 2001
-@@ -1645,7 +1645,17 @@
+--- main.c.orig Mon Jan 28 02:52:03 2002
++++ main.c
+@@ -2221,7 +2221,17 @@
shell = "/bin/sh";
system(shell);
#else /* SIGSTOP */
+#ifdef SIGTSTP
-+ signal(SIGTSTP, SIG_DFL); /* just in case */
++ signal(SIGTSTP, SIG_DFL); /* just in case */
+ /*
+ * Note: If susp() was called from SIGTSTP handler,
+ * unblocking SIGTSTP would be required here.
+ * Currently not.
-+ */
-+ kill(0, SIGTSTP); /* stop whole job, not a single process */
++ */
++ kill(0, SIGTSTP); /* stop whole job, not a single process */
+#else
- kill((pid_t)0, SIGSTOP);
+ kill((pid_t) 0, SIGSTOP);
+#endif
#endif /* SIGSTOP */
fmInit();
diff --git a/www/w3m/patches/patch-af b/www/w3m/patches/patch-af
deleted file mode 100644
index 2e127501689..00000000000
--- a/www/w3m/patches/patch-af
+++ /dev/null
@@ -1,38 +0,0 @@
-$NetBSD: patch-af,v 1.3 2001/05/01 00:31:26 kei Exp $
-
---- libwc/Makefile.orig Sat Apr 21 16:23:53 2001
-+++ libwc/Makefile Sat Apr 21 16:32:43 2001
-@@ -1,10 +1,10 @@
-
- LIBRARY = libwc.a
--GCLIB = ../gc/gc.a
--CC = cc -O -g -Wall -DUSE_UNICODE
--CFLAGS = -I. -I.. -I../gc/include -I../gc
--AR = ar
--RANLIB = ranlib
-+GCLIB = ${PREFIX}/lib/libgc.a
-+CC = ${CC} -O -g -Wall -DUSE_UNICODE
-+CFLAGS = -I. -I.. -I${PREFIX}/include
-+AR = ${AR}
-+RANLIB = ${RANLIB}
-
- SRCS = big5.c \
- ces.c \
-@@ -90,7 +90,7 @@
- ces.o: wc.h ../Str.h wc_types.h ces.h ccs.h iso2022.h priv.h sjis.h hz.h \
- big5.h johab.h gbk.h gb18030.h uhc.h viet.h utf8.h
- char_conv.o: wc.h ../Str.h wc_types.h ces.h ccs.h iso2022.h priv.h
--charset.o: ../gc/include/gc.h wc.h ../Str.h wc_types.h ces.h ccs.h iso2022.h \
-+charset.o: ${PREFIX}/include/gc.h wc.h ../Str.h wc_types.h ces.h ccs.h iso2022.h \
- priv.h
- combining.o: wc.h ../Str.h wc_types.h ces.h ccs.h iso2022.h priv.h ucs.h \
- map/iso88596_combining.map map/iso885911_combining.map \
-@@ -117,7 +117,7 @@
- search.o: wc.h ../Str.h wc_types.h ces.h ccs.h iso2022.h priv.h
- sjis.o: wc.h ../Str.h wc_types.h ces.h ccs.h iso2022.h priv.h sjis.h jis.h \
- wtf.h ucs.h map/jisx02132_sjis.map
--status.o: ../gc/include/gc.h wc.h ../Str.h wc_types.h ces.h ccs.h iso2022.h \
-+status.o: ${PREFIX}/include/gc.h wc.h ../Str.h wc_types.h ces.h ccs.h iso2022.h \
- priv.h ucs.h
- test.o: wc.h ../Str.h wc_types.h ces.h ccs.h iso2022.h priv.h
- ucs.o: wc.h ../Str.h wc_types.h ces.h ccs.h iso2022.h priv.h ucs.h search.h \
diff --git a/www/w3m/patches/patch-ag b/www/w3m/patches/patch-ag
deleted file mode 100644
index 28dd41800de..00000000000
--- a/www/w3m/patches/patch-ag
+++ /dev/null
@@ -1,41 +0,0 @@
-$NetBSD: patch-ag,v 1.1 2001/06/24 05:57:24 itojun Exp $
-
-plug buffer overrun vulnerability in mime charset parsing
-http://mi.med.tohoku.ac.jp/~satodai/w3m-dev-en/200106.month/537.html
-
---- mimehead.c Sun Jun 24 14:49:45 2001
-+++ mimehead.c Sun Jun 24 14:46:53 2001
-@@ -173,27 +173,26 @@
- decodeWord(char **ow)
- {
- #endif
-- char buf[32];
- char *p, *w = *ow;
- char method;
- Str a = Strnew();
-+ Str cs = Strnew();
-
- if (*w != '=' || *(w + 1) != '?')
- goto convert_fail;
- w += 2;
-- for (p = buf; p - buf < 31 && *w != '?'; w++) {
-+ for (; *w != '?'; w++) {
- if (*w == '\0')
- goto convert_fail;
-- *(p++) = *w;
-+ Strcat_char(cs, *w);
- }
-- *p = '\0';
- #ifdef USE_M17N
-- c = wc_guess_charset(buf, 0);
-+ c = wc_guess_charset(cs->ptr, 0);
- if (! c)
- goto convert_fail;
- #else
-- if (strcasecmp(buf, "ISO-8859-1") != 0 &&
-- strcasecmp(buf, "US_ASCII") != 0)
-+ if (Strcasecmp_charp(cs, "ISO-8859-1") != 0 &&
-+ Strcasecmp_charp(cs, "US_ASCII") != 0)
- /* NOT ISO-8859-1 encoding ... don't convert */
- goto convert_fail;
- #endif
diff --git a/www/w3m/patches/patch-ah b/www/w3m/patches/patch-ah
deleted file mode 100644
index 9d45d29919d..00000000000
--- a/www/w3m/patches/patch-ah
+++ /dev/null
@@ -1,24 +0,0 @@
-$NetBSD: patch-ah,v 1.1 2001/09/28 10:10:41 itojun Exp $
-
-plug security hole.
-http://mi.med.tohoku.ac.jp/~satodai/w3m-dev/200109.month/2226.html
-
---- indep.c.orig Fri Sep 28 18:57:03 2001
-+++ indep.c Fri Sep 28 18:58:06 2001
-@@ -74,14 +74,14 @@
- #endif /* __EMX__ */
-
- char *
--cleanupName(char *name)
-+cleanupName2(char *name, int flag)
- {
- char *buf, *p, *q;
-
- buf = allocStr(name, 0);
- p = buf;
- q = name;
-- while (*q != '\0' && *q != '?') {
-+ while (*q != '\0' && (*q != '?' || ! flag)) {
- if (strncmp(p, "/../", 4) == 0) { /* foo/bar/../FOO */
- if (p - 2 == buf && strncmp(p - 2, "..", 2) == 0) {
- /* ../../ */
diff --git a/www/w3m/patches/patch-ai b/www/w3m/patches/patch-ai
deleted file mode 100644
index b176fba132a..00000000000
--- a/www/w3m/patches/patch-ai
+++ /dev/null
@@ -1,17 +0,0 @@
-$NetBSD: patch-ai,v 1.3 2001/09/28 10:10:41 itojun Exp $
-
-plug security hole.
-http://mi.med.tohoku.ac.jp/~satodai/w3m-dev/200109.month/2226.html
-
---- indep.h.orig Fri Sep 28 18:57:03 2001
-+++ indep.h Fri Sep 28 18:57:45 2001
-@@ -20,7 +20,8 @@
- extern char *allocStr(const char *s, int len);
- extern int strCmp(const void *s1, const void *s2);
- extern char *currentdir(void);
--extern char *cleanupName(char *name);
-+extern char *cleanupName2(char *name, int flag);
-+#define cleanupName(name) cleanupName2((name), TRUE)
- extern char *expandPath(char *name);
- extern char *strcasestr(char *s1, char *s2);
- extern int strcasemstr(char *str, char *srch[], char **ret_ptr);
diff --git a/www/w3m/patches/patch-aj b/www/w3m/patches/patch-aj
deleted file mode 100644
index dabdc2abab7..00000000000
--- a/www/w3m/patches/patch-aj
+++ /dev/null
@@ -1,52 +0,0 @@
-$NetBSD: patch-aj,v 1.1 2001/09/28 10:10:41 itojun Exp $
-
-plug security hole.
-http://mi.med.tohoku.ac.jp/~satodai/w3m-dev/200109.month/2226.html
-
---- url.c.orig Fri Sep 28 18:57:05 2001
-+++ url.c Fri Sep 28 18:59:14 2001
-@@ -949,7 +949,7 @@
- pu->file = cleanupName(pu->file);
- }
- if (pu->scheme == SCM_LOCAL)
-- pu->real_file = file_unquote(pu->file);
-+ pu->real_file = cleanupName2(file_unquote(pu->file), FALSE);
- }
- }
-
-@@ -1247,7 +1247,7 @@
- Str tmp2 = Strnew_charp("#");
- Strcat_charp(tmp2, pu->label);
- pu->file = tmp2->ptr;
-- pu->real_file = file_unquote(pu->file);
-+ pu->real_file = cleanupName2(file_unquote(pu->file), FALSE);
- pu->label = NULL;
- }
- else {
-@@ -1284,7 +1284,7 @@
- else if ((q = strchr(pu->file, '?')) != NULL) {
- /* local CGI: GET */
- p = Strnew_charp_n(pu->file, (int)(q - pu->file))->ptr;
-- pu->real_file = file_unquote(p);
-+ pu->real_file = cleanupName2(file_unquote(p), FALSE);
- uf.stream = newFileStream(localcgi_get(pu->real_file, q + 1, option->referer),
- (void (*)()) pclose);
- if (uf.stream != NULL) {
-@@ -1322,7 +1322,7 @@
- Strcat_char(tmp, '/');
- Strcat_charp(tmp, pu->file);
- p = cleanupName(tmp->ptr);
-- q = file_unquote(p);
-+ q = cleanupName2(file_unquote(p), FALSE);
- if (dir_exist(q)) {
- pu->file = p;
- pu->real_file = q;
-@@ -1606,7 +1606,7 @@
- }
- p = Strnew_m_charp(pu->file, "/", file_quote(index_file), NULL)->ptr;
- p = cleanupName(p);
-- q = file_unquote(p);
-+ q = cleanupName2(file_unquote(p), FALSE);
- examineFile(q, uf);
- if (uf->stream == NULL)
- return;