From 0a870f16e26d2fe0257311e01bc98188bcfe8f09 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Sat, 19 Jan 2013 23:03:13 +0000 Subject: Use unique tmpfile for dumping macros, if several iurt create/remove /tmp/rpmmacros things will fail sometimes --- lib/Iurt/Chroot.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm index a3f314c..5761e71 100644 --- a/lib/Iurt/Chroot.pm +++ b/lib/Iurt/Chroot.pm @@ -143,7 +143,7 @@ sub dump_rpmmacros { #plog("adding rpmmacros to $file"); - my $tmpfile = "/tmp/rpmmacros"; + my $tmpfile = mktemp("/tmp/rpmmacros.XXXXXX"); if (!open $f, ">$tmpfile") { plog("ERROR: could not open $tmpfile ($!)"); return 0; -- cgit v1.2.1