X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;ds=sidebyside;f=tools%2Fvirt-edit;h=ca8e576f2836a507c8935c7fb23f080c4dd78d38;hb=e2d352feb99f47c56b895837d838da3552fa0820;hp=9196a663aa12a5594bfd25e5840fea64c0fa1474;hpb=5c4bf92bc298e078ceccdde603313282d038544c;p=libguestfs.git
diff --git a/tools/virt-edit b/tools/virt-edit
index 9196a66..ca8e576 100755
--- a/tools/virt-edit
+++ b/tools/virt-edit
@@ -133,14 +133,13 @@ my %fses =
my $oses = inspect_operating_systems ($g, \%fses);
my @roots = keys %$oses;
-die __"no root device found in this operating system image" if @roots == 0;
die __"multiboot operating systems are not supported by virt-edit" if @roots > 1;
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);
@@ -192,7 +191,7 @@ L.
=head1 AUTHOR
-Richard W.M. Jones L
+Richard W.M. Jones L
=head1 COPYRIGHT