X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=tools%2Fvirt-edit;h=ca8e576f2836a507c8935c7fb23f080c4dd78d38;hb=e2d352feb99f47c56b895837d838da3552fa0820;hp=e00e4cfb0ec1e903626671fd7b947d21cda1b236;hpb=94e310dcfbcd368cbe02dbc1643ed2ff9821cd48;p=libguestfs.git diff --git a/tools/virt-edit b/tools/virt-edit index e00e4cf..ca8e576 100755 --- a/tools/virt-edit +++ b/tools/virt-edit @@ -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);