X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=tools%2Fvirt-ls;h=8813d2fa3fd02eb9b58226f741ac42f40d98c262;hb=581a7965faa5bf242ab3f8b7c259ab17c2e967f4;hp=a55f6c3143a1fa141b6a40b3bdc079a3331acfe6;hpb=ea124897881d9e40d89eca5307e04def0fb42bdb;p=libguestfs.git
diff --git a/tools/virt-ls b/tools/virt-ls
index a55f6c3..8813d2f 100755
--- a/tools/virt-ls
+++ b/tools/virt-ls
@@ -183,7 +183,6 @@ my %fses =
my $oses = inspect_operating_systems ($g, \%fses);
my @roots = keys %$oses;
-die __"no root device found in this operating system image\n" if @roots == 0;
die __"multiboot operating systems are not supported by virt-ls\n" if @roots > 1;
my $root_dev = $roots[0];
@@ -202,8 +201,8 @@ unless ($mode) {
my $r;
my $line;
while (($r = read (F, $line, 1024)) > 0) {
- $line =~ tr{\0}{\n};
- print $line;
+ $line =~ tr{\0}{\n};
+ print $line;
}
close F;
}
@@ -221,7 +220,7 @@ L.
=head1 AUTHOR
-Richard W.M. Jones L
+Richard W.M. Jones L
=head1 COPYRIGHT