Package: latex2html
Version: 2002-2-1-8
Severity: important
Tags: patch

Hi,

When two or more instances of pstoimg, called with the -multipage option
and using the same temporary directory (/tmp by default), run at the same
time, the results may get mixed up. This is because pstoimg uses a wrong
pattern to collect the files created by ghostscript.

Here is a patch which fixes the problem:

======== snip ========
--- /usr/bin/pstoimg    2004-09-01 20:50:36.000000000 +0200
+++ pstoimg     2005-03-06 20:40:54.000000000 +0100
@@ -894,7 +894,7 @@
       print qq{$prompt: Error: Could not open directory "$pnmdir":
$!\n};
       return 0;
       }
-    my @list = grep(/^\d+_\w*\./,readdir(DIR));
+    my @list = grep(/^\d+_${pnmbase}\.pnm/,readdir(DIR));
     closedir(DIR);
     if(@list) {
       my $i;
======== snap ========

Regards,
Holger


-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (800, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8.1
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages latex2html depends on:
ii  gs                            8.01-5     Transitional package
ii  gs-gpl [gs]                   8.01-5     The GPL Ghostscript PostScript int
ii  netpbm                        2:10.0-8   Graphics conversion tools
ii  perl                          5.8.4-6    Larry Wall's Practical Extraction 
ii  tetex-bin                     2.0.2-26   The teTeX binary files
ii  tetex-extra                   2.0.2c-6   Additional library files of teTeX

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to