summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrej Kacian <ticho@gentoo.org>2005-07-21 14:38:12 +0000
committerAndrej Kacian <ticho@gentoo.org>2005-07-21 14:38:12 +0000
commit9f2747140fc39d510718f6d70d07f6aa7e2f35e2 (patch)
tree9c63039fc4af79f8c268f0de8c7b69ac714b278c /mail-client/elmo/files
parentFixed qt immodule. (diff)
downloadhistorical-9f2747140fc39d510718f6d70d07f6aa7e2f35e2.tar.gz
historical-9f2747140fc39d510718f6d70d07f6aa7e2f35e2.tar.bz2
historical-9f2747140fc39d510718f6d70d07f6aa7e2f35e2.zip
Patch to fix sec. bug #97595.
Package-Manager: portage-2.0.51.22-r1
Diffstat (limited to 'mail-client/elmo/files')
-rw-r--r--mail-client/elmo/files/digest-elmo-1.3.2-r21
-rw-r--r--mail-client/elmo/files/elmo-1.3.2-stats.patch34
2 files changed, 35 insertions, 0 deletions
diff --git a/mail-client/elmo/files/digest-elmo-1.3.2-r2 b/mail-client/elmo/files/digest-elmo-1.3.2-r2
new file mode 100644
index 000000000000..2dc7a81a7515
--- /dev/null
+++ b/mail-client/elmo/files/digest-elmo-1.3.2-r2
@@ -0,0 +1 @@
+MD5 bc3836a276b092fde8555e42532d4bc8 elmo-1.3.2.tar.gz 536768
diff --git a/mail-client/elmo/files/elmo-1.3.2-stats.patch b/mail-client/elmo/files/elmo-1.3.2-stats.patch
new file mode 100644
index 000000000000..f434324cf115
--- /dev/null
+++ b/mail-client/elmo/files/elmo-1.3.2-stats.patch
@@ -0,0 +1,34 @@
+diff -ur elmo-1.3.2.orig/src/stats.c elmo-1.3.2/src/stats.c
+--- elmo-1.3.2.orig/src/stats.c 2004-04-29 10:06:10.000000000 +0200
++++ elmo-1.3.2/src/stats.c 2005-07-21 16:19:27.000000000 +0200
+@@ -24,6 +24,7 @@
+ ****************************************************************************/
+
+ #include <errno.h>
++#include <stdlib.h>
+
+ #include "stats.h"
+ #include "wrapbox.h"
+@@ -181,7 +182,8 @@
+ void
+ stats_dump (void)
+ {
+- int i;
++ int i, fd;
++ char template[] = "/tmp/elmostatsXXXXXX";
+ FILE *fp;
+ mail_t *mail;
+ struct estats stats;
+@@ -200,9 +202,10 @@
+ process_mail (& stats, mail);
+ }
+
+- fp = fopen ("/tmp/elmostats", "w");
++ fd = mkstemp(template);
++ fp = fdopen (fd, "w");
+ if (fp == NULL){
+- error_ (errno, _("couldn't open %s"), "/tmp/elmostats");
++ error_ (errno, _("couldn't open %s"), template);
+ destroy_stats (& stats);
+ return;
+ }