summaryrefslogtreecommitdiff
path: root/www/wwwoffle
diff options
context:
space:
mode:
authorfredb <fredb@pkgsrc.org>2002-07-25 15:56:19 +0000
committerfredb <fredb@pkgsrc.org>2002-07-25 15:56:19 +0000
commitc7f528a950c07ad69e16cf42939fd712adbfda6e (patch)
treea6b6ae44161cf89b6332c6cff536ff601723744e /www/wwwoffle
parentd25e20ed3e44be3851f71d26a6c6adad74964a0d (diff)
downloadpkgsrc-c7f528a950c07ad69e16cf42939fd712adbfda6e.tar.gz
In FTP_Request(), don't free "path" until we're really done with it, as
"file" is in "path"'s allocation. This fixes a bug where the server task would randomly try to acces a file as a directory, and fail. Bump PKGREVISION, as this was a fairly serious bug.
Diffstat (limited to 'www/wwwoffle')
-rw-r--r--www/wwwoffle/Makefile3
-rw-r--r--www/wwwoffle/distinfo3
-rw-r--r--www/wwwoffle/patches/patch-ab21
3 files changed, 25 insertions, 2 deletions
diff --git a/www/wwwoffle/Makefile b/www/wwwoffle/Makefile
index 57ee34e1875..905985d5d05 100644
--- a/www/wwwoffle/Makefile
+++ b/www/wwwoffle/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.37 2002/07/16 14:28:07 fredb Exp $
+# $NetBSD: Makefile,v 1.38 2002/07/25 15:56:19 fredb Exp $
DISTNAME= wwwoffle-2.7c
+PKGREVISION= 1
CATEGORIES= www
MASTER_SITES= ftp://ftp.demon.co.uk/pub/unix/httpd/ \
http://www.gedanken.freeserve.co.uk/download-wwwoffle/ \
diff --git a/www/wwwoffle/distinfo b/www/wwwoffle/distinfo
index ae5d9121b97..d578ac6ba4c 100644
--- a/www/wwwoffle/distinfo
+++ b/www/wwwoffle/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.12 2002/07/16 14:28:07 fredb Exp $
+$NetBSD: distinfo,v 1.13 2002/07/25 15:56:20 fredb Exp $
SHA1 (wwwoffle-2.7c.tgz) = 6260ba0f039ad5430f2e9c31d702e3da35b92a44
Size (wwwoffle-2.7c.tgz) = 867164 bytes
SHA1 (patch-aa) = 897de385a47826e16a8a09b1bc1c207a2d350f94
+SHA1 (patch-ab) = 0dfd322da2bb9750668319132fc9d0a0a4c035dd
diff --git a/www/wwwoffle/patches/patch-ab b/www/wwwoffle/patches/patch-ab
new file mode 100644
index 00000000000..15be8848818
--- /dev/null
+++ b/www/wwwoffle/patches/patch-ab
@@ -0,0 +1,21 @@
+$NetBSD: patch-ab,v 1.9 2002/07/25 15:56:20 fredb Exp $
+
+--- src/ftp.c.orig Sun Jun 23 10:04:08 2002
++++ src/ftp.c
+@@ -365,8 +365,6 @@
+ return(msg);
+ }
+
+- free(path);
+-
+ /* Change directory again to see if file is a dir. */
+
+ if(file)
+@@ -824,6 +822,7 @@
+ nbuffer=buffer?strlen(buffer):0; nread=0;
+ nbuffertail=buffertail?strlen(buffertail):0; nreadtail=0;
+
++ free(path);
+ free(str);
+
+ return(msg);