aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authormi <mi@FreeBSD.org>2007-10-29 08:18:59 +0800
committermi <mi@FreeBSD.org>2007-10-29 08:18:59 +0800
commit0a99cfd911577cd7f56c82415437acfd8c213474 (patch)
treed272f025b153ccb79d2818a8d2ec95d176727f49 /mail
parent7eb45ac1565bd9563c13fe8a1b2cd025f3ac5338 (diff)
downloadfreebsd-ports-gnome-0a99cfd911577cd7f56c82415437acfd8c213474.tar.gz
freebsd-ports-gnome-0a99cfd911577cd7f56c82415437acfd8c213474.tar.zst
freebsd-ports-gnome-0a99cfd911577cd7f56c82415437acfd8c213474.zip
The fix for a double-free problem was provided by the package maintainer
(Kari Hurtta) within 24 hours after reporting. Add the patch to the port - it should not be neccessary at the next update. Bump PORTREVISION. Also change pre-install to pre-su-install to allow a non-root user to install the freshly-built port. Approved by: maintainer
Diffstat (limited to 'mail')
-rw-r--r--mail/elm+ME/Makefile3
-rw-r--r--mail/elm+ME/files/patch-search-fix24
2 files changed, 26 insertions, 1 deletions
diff --git a/mail/elm+ME/Makefile b/mail/elm+ME/Makefile
index a38df0848a44..d910400c47b8 100644
--- a/mail/elm+ME/Makefile
+++ b/mail/elm+ME/Makefile
@@ -7,6 +7,7 @@
PORTNAME= elm+ME
PORTVERSION= ${ELM_VERSION}.${ELM_REVISION}${ELM_PATCHLEVEL:S/_//}
+PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= http://www.elmme-mailer.org/ \
ftp://ftp.elmme-mailer.org/elmme-mailer.org/src/elm-2.4ME+/ \
@@ -220,7 +221,7 @@ rename-readmes:
# Pre-install
#
-pre-install: create-install-dirs backup-conf-files
+pre-su-install: create-install-dirs backup-conf-files
create-install-dirs:
@${MKDIR} ${CONF_DIR} ${LIB_DIR} ${SHLIB_DIR}
diff --git a/mail/elm+ME/files/patch-search-fix b/mail/elm+ME/files/patch-search-fix
new file mode 100644
index 000000000000..8f378c3156ff
--- /dev/null
+++ b/mail/elm+ME/files/patch-search-fix
@@ -0,0 +1,24 @@
+The meaningful part of the patch obtained from Kari E. Hurtta
+(elm+ME maintainer), which fixes a double-free in parsing of
+certain MIME e-mails. The patch should be included in the next
+release of elm.
+
+--- melib/mime_decode.c 25 Aug 2007 11:51:51 -0000 2.0
++++ melib/mime_decode.c 28 Oct 2007 07:39:29 -0000 2.2
+@@ -2525,11 +2525,13 @@
+ unlink(fname); /* Unlink was delayed */
+ *name = NULL;
+ }
+- free(fname);
+- }
+
+- if (!name)
+ free(fname);
++
++ } else {
++ if (!name)
++ free(fname);
++ }
+ return tmpfp;
+ }
+