From 9f2747140fc39d510718f6d70d07f6aa7e2f35e2 Mon Sep 17 00:00:00 2001 From: Andrej Kacian Date: Thu, 21 Jul 2005 14:38:12 +0000 Subject: Patch to fix sec. bug #97595. Package-Manager: portage-2.0.51.22-r1 --- mail-client/elmo/files/digest-elmo-1.3.2-r2 | 1 + mail-client/elmo/files/elmo-1.3.2-stats.patch | 34 +++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 mail-client/elmo/files/digest-elmo-1.3.2-r2 create mode 100644 mail-client/elmo/files/elmo-1.3.2-stats.patch (limited to 'mail-client/elmo/files') 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 ++#include + + #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; + } -- cgit v1.2.3-65-gdbad