aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Iurt
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2013-01-19 23:03:13 +0000
committerPascal Terjan <pterjan@mageia.org>2013-01-19 23:03:13 +0000
commit0a870f16e26d2fe0257311e01bc98188bcfe8f09 (patch)
treebb945e2a71752dedfdc0fc795824c6304787c754 /lib/Iurt
parenta862df58c881765cfeb0ea299f70826a637e49db (diff)
downloadiurt-0a870f16e26d2fe0257311e01bc98188bcfe8f09.tar
iurt-0a870f16e26d2fe0257311e01bc98188bcfe8f09.tar.gz
iurt-0a870f16e26d2fe0257311e01bc98188bcfe8f09.tar.bz2
iurt-0a870f16e26d2fe0257311e01bc98188bcfe8f09.tar.xz
iurt-0a870f16e26d2fe0257311e01bc98188bcfe8f09.zip
Use unique tmpfile for dumping macros, if several iurt create/remove /tmp/rpmmacros things will fail sometimes
Diffstat (limited to 'lib/Iurt')
-rw-r--r--lib/Iurt/Chroot.pm2
1 files changed, 1 insertions, 1 deletions
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;