diff options
author | Pascal Terjan <pterjan@mageia.org> | 2013-01-19 23:03:13 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2013-01-19 23:03:13 +0000 |
commit | 0a870f16e26d2fe0257311e01bc98188bcfe8f09 (patch) | |
tree | bb945e2a71752dedfdc0fc795824c6304787c754 /lib/Iurt/Chroot.pm | |
parent | a862df58c881765cfeb0ea299f70826a637e49db (diff) | |
download | iurt-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/Chroot.pm')
-rw-r--r-- | lib/Iurt/Chroot.pm | 2 |
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; |