summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Lohrke <carlo@gentoo.org>2005-08-14 23:28:24 +0000
committerCarsten Lohrke <carlo@gentoo.org>2005-08-14 23:28:24 +0000
commit30c3bd2f5fd7fa26d4f18762fbc7eaa790b77a91 (patch)
tree19070f81bc6ac8058b2f16a008ad550fbb3b228f /kde-base/kvoctrain/files
parentSecurity release (diff)
downloadhistorical-30c3bd2f5fd7fa26d4f18762fbc7eaa790b77a91.tar.gz
historical-30c3bd2f5fd7fa26d4f18762fbc7eaa790b77a91.tar.bz2
historical-30c3bd2f5fd7fa26d4f18762fbc7eaa790b77a91.zip
temp file vulnerability, #102151
Package-Manager: portage-2.0.51.22-r2
Diffstat (limited to 'kde-base/kvoctrain/files')
-rw-r--r--kde-base/kvoctrain/files/digest-kvoctrain-3.4.1-r13
-rw-r--r--kde-base/kvoctrain/files/digest-kvoctrain-3.4.2-r11
-rw-r--r--kde-base/kvoctrain/files/post-3.4.2-kdeedu.diff63
3 files changed, 67 insertions, 0 deletions
diff --git a/kde-base/kvoctrain/files/digest-kvoctrain-3.4.1-r1 b/kde-base/kvoctrain/files/digest-kvoctrain-3.4.1-r1
new file mode 100644
index 000000000000..e56c0fb82557
--- /dev/null
+++ b/kde-base/kvoctrain/files/digest-kvoctrain-3.4.1-r1
@@ -0,0 +1,3 @@
+MD5 c2aab0c4f6439abb6c0eb09413b6532c kdeedu-3.4.0.tar.bz2 23559284
+MD5 c79198c40ad9f34a47debbf4548c8363 kdeedu-3.4.0-3.4.1.tar.xdelta 651600
+MD5 9fa1db1cf500c0fc594b0f5d291bbf69 kdeedu-3.4.1.tar.bz2 24009520
diff --git a/kde-base/kvoctrain/files/digest-kvoctrain-3.4.2-r1 b/kde-base/kvoctrain/files/digest-kvoctrain-3.4.2-r1
new file mode 100644
index 000000000000..733395bad924
--- /dev/null
+++ b/kde-base/kvoctrain/files/digest-kvoctrain-3.4.2-r1
@@ -0,0 +1 @@
+MD5 e2c5cc083868dd4c35c1b50e04eb40eb kdeedu-3.4.2.tar.bz2 24028133
diff --git a/kde-base/kvoctrain/files/post-3.4.2-kdeedu.diff b/kde-base/kvoctrain/files/post-3.4.2-kdeedu.diff
new file mode 100644
index 000000000000..1d75c63bac18
--- /dev/null
+++ b/kde-base/kvoctrain/files/post-3.4.2-kdeedu.diff
@@ -0,0 +1,63 @@
+Index: kvoctrain/kvoctrain/langen2kvtml
+===================================================================
+--- kvoctrain/kvoctrain/langen2kvtml (revision 443975)
++++ kvoctrain/kvoctrain/langen2kvtml (working copy)
+@@ -89,6 +89,9 @@
+
+ require "flush.pl";
+ use Getopt::Long;
++use File::Temp qw(tempdir);
++my $tmpdir = tempdir(TEMPDIR => 1, CLEANUP => 1 );
++
+ $/="\r\n"; # we work with dos files
+
+ #
+@@ -165,10 +168,6 @@
+ $country="GB";
+ }
+
+-# All logging information goes into this file
+-$logfile = "/tmp/langen2kvtml.log";
+-open(LOG, ">$logfile") || die "Cannot create $logfile: $!";
+-
+ &printflush(STDOUT,"Waiting for generating files ...\n");
+ $tmp1=$#ARGV+1;
+ &printflush(STDOUT,"... $tmp1 files given via command line ...\n");
+@@ -178,13 +177,11 @@
+ if ($proxy) {
+ &printflush(STDOUT,"... using proxy service $proxy ...\n");
+ }
+- `lwp-request $proxy http://www.vokabeln.de/files/Voc-$country.zip >/tmp/Voc-$country.zip`;
+- # unzip -u update only!
+- # unzip -o overwrite!
+- `unzip -u /tmp/Voc-$country.zip >/tmp/unzip.log`;
++ `lwp-request $proxy http://www.vokabeln.de/files/Voc-$country.zip >$tmpdir/Voc-$country.zip`;
+ &printflush(STDOUT,"... updating Voc-$country.zip ...\n");
+ $/="\n"; # we work with a unix file
+- open(ZIP,"</tmp/unzip.log");
++ # unzip -u update only!
++ open(ZIP,"unzip -u $tmpdir/Voc-$country.zip |");
+ while(<ZIP>) {
+ chomp;
+ if( /voc/ ) {
+@@ -194,20 +191,16 @@
+ }
+ }
+ close(ZIP);
+- unlink("/tmp/unzip.log");
+ $/="\r\n"; # we work with a dos file
+ }
+
+ for my $file (@res, @ARGV) {
+ $vocfile = $file;
+- &printflush(LOG,"... generating \"$kvtfile\"...\n");
+ $lang = ""; # initially unset
+ $filestage = 0; # file stage
+ &process_vocfile($vocfile);
+ }
+ print STDERR "...\tAll Complete.\n";
+-&printflush(LOG,"\nAll Complete.\n");
+-close(LOG);
+
+ exit;
+