X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=tools%2Fvirt-ls;h=8813d2fa3fd02eb9b58226f741ac42f40d98c262;hb=4ea0abfce413767868a8f53b3d20e5d2f62dff08;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