blob: 77769c705bc51aa8868ec31d58d4cdf928ee843d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
$NetBSD: patch-ak,v 1.2 2008/08/12 20:09:34 tonnerre Exp $
--- wml_backend/p1_ipp/ipp.src.orig 2002-04-20 23:26:19.000000000 +0200
+++ wml_backend/p1_ipp/ipp.src
@@ -565,6 +565,8 @@ foreach $str (@opt_D) {
# process the pre-loaded include files
#
$tmpdir = $ENV{'TMPDIR'} || '/tmp';
+my $tmpldir = ($ENV{'TMPDIR'} || '/tmp') . '/ipp.XXXXXX';
+$tmpdir = mkdtemp($tmpldir) or die "Unable to create temporary directory: $!\n";
$tmpfile = $tmpdir . "/ipp.$$.tmp";
unlink($tmpfile);
$tmp = new IO::File;
|