Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Feb 2003 15:27:09 -0500 (EST)
From:      Jason Harris <jharris@widomaker.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        Jason Harris <jharris@widomaker.com>
Subject:   ports/48644: [maintainer-update] ports/www/elinks - fix gzip-encoded pages
Message-ID:  <200302242027.h1OKR9l07671@pm4-03.lft.widomaker.com>

next in thread | raw e-mail | index | archive | help

>Number:         48644
>Category:       ports
>Synopsis:       [maintainer-update] ports/www/elinks - fix gzip-encoded pages
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 24 12:30:05 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Jason Harris
>Release:        FreeBSD 4.3-RELEASE i386
>Organization:
none here
>Environment:
System: FreeBSD 4.3-RELEASE i386

>Description:

	make gzip-encoded pages display properly
>How-To-Repeat:

	apply patch below
>Fix:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
NotDashEscaped: You need GnuPG to verify this message

? files/patch-compression
cvs server: Diffing .
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/www/elinks/Makefile,v
retrieving revision 1.25
diff -u -r1.25 Makefile
--- Makefile	2003/02/21 14:01:15	1.25
+++ Makefile	2003/02/24 20:16:40
@@ -7,6 +7,7 @@
 
 PORTNAME=	elinks
 PORTVERSION=	0.4.2
+PORTREVISION=	1
 CATEGORIES=	www
 MASTER_SITES=	http://elinks.or.cz/download/
 DISTFILES=	${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}${EXTRACT_SUFX}.asc
cvs server: Diffing files
--- /dev/null	Mon Feb 24 15:17:19 2003
+++ files/patch-compression	Mon Feb 24 14:52:31 2003
@@ -0,0 +1,44 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+NotDashEscaped: You need GnuPG to verify this message
+
+
+# copied from:
+# http://archive.linuxfromscratch.org/mail-archives/links-list/2003/02/att-0021/01-elinks-openbsd_bug.patch
+# http://archive.linuxfromscratch.org/mail-archives/links-list/2003/02/0021.html
+
+--- src/protocol/http/http.c.orig	Sun Feb  9 02:14:19 2003
++++ src/protocol/http/http.c	Sun Feb  9 02:21:10 2003
+@@ -710,6 +710,8 @@
+ 	}
+ 
+ 	do {
++		int init;
++
+ 		if (to_read == PIPE_BUF / 2) {
+ 			/* ... we aren't finishing yet. */
+ 			int written = write(conn->stream_pipes[1], data,
+@@ -743,12 +745,13 @@
+ 			conn->stream = open_encoded(conn->stream_pipes[0],
+ 					conn->content_encoding);
+ 			if (!conn->stream) return NULL;
+-		}
++			else init = 1;
++		} else init = 0;
+ 
+ 		output = (unsigned char *) mem_realloc(output, *new_len + to_read);
+ 		if (!output) break;
+ 
+-		did_read = read_encoded(conn->stream, output + *new_len, to_read);
++		did_read = read_encoded(conn->stream, output + *new_len, init ? PIPE_BUF / 4 : to_read);
+ 		if (did_read > 0) *new_len += did_read;
+ 	} while (!(!len && did_read != to_read));
+ 
+
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.2.1 (FreeBSD)
+
+iD8DBQE+Wnf/SypIl9OdoOMRAiKLAJ9UoMBFqKp6Z5WQPCpWyyLnZ5js3ACfbalV
+mEIH0ioE4rpuE/Tmcu9nj08=
+=5S2+
+-----END PGP SIGNATURE-----
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE+Wn62SypIl9OdoOMRAqpzAJ43PmuFd9Ytd/gu2Tju6MNBFM6ZuwCgpnIm
okXnhu3psxJIujyvZpH7boo=
=MZvf
-----END PGP SIGNATURE-----
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200302242027.h1OKR9l07671>