edit: Clean up temporary files.

Note to self: The 'tempfile' function does *not* default to
removing files with the program exits!

For stable-1.2 branch:
 - Cherry picked from commit 10ea14a3f1
 - Rebase.
This commit is contained in:
Richard Jones
2010-07-11 23:11:08 +01:00
parent 1bbd84b1ff
commit a0c41d127d

View File

@@ -139,7 +139,7 @@ my $root_dev = $roots[0];
my $os = $oses->{$root_dev};
mount_operating_system ($g, $os, 0);
my ($fh, $tempname) = tempfile ();
my ($fh_not_used, $tempname) = tempfile (UNLINK => 1);
# Allow this to fail in case eg. the file does not exist.
$g->download($filename, $tempname);