2023-06-23 11:18:14 +02:00
|
|
|
Index: netpbm-11.2.0/editor/ppmshadow
|
2013-09-11 09:57:29 +02:00
|
|
|
===================================================================
|
2023-06-23 11:18:14 +02:00
|
|
|
--- netpbm-11.2.0.orig/editor/ppmshadow
|
|
|
|
+++ netpbm-11.2.0/editor/ppmshadow
|
2020-12-29 12:51:30 +01:00
|
|
|
@@ -194,9 +194,10 @@ my $tmpdir = $ENV{TMPDIR} || "/tmp";
|
2016-08-22 17:43:39 +02:00
|
|
|
my $ourtmp;
|
2009-07-08 21:02:40 +02:00
|
|
|
|
2016-08-22 17:43:39 +02:00
|
|
|
if ($keeptemp) {
|
|
|
|
- $ourtmp = "$tmpdir/ppmshadow$$";
|
|
|
|
- mkdir($ourtmp, 0777) or
|
|
|
|
- die("Unable to create directory for temporary files '$ourtmp");
|
|
|
|
+ chomp($ourtmp = `mktemp -d -t PPMshadow.XXXXXX`);
|
|
|
|
+ if ($? >> 8) {
|
2009-07-08 21:02:40 +02:00
|
|
|
+ die "Can't create directory for temporary files";
|
2016-08-22 17:43:39 +02:00
|
|
|
+ }
|
|
|
|
} else {
|
2023-06-23 11:18:14 +02:00
|
|
|
$ourtmp = File::Temp::tempdir("$tmpdir/ppmshadowXXXX", CLEANUP=>1);
|
2016-08-22 17:43:39 +02:00
|
|
|
}
|