mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user