diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index 0983ce69..b277a268 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -1849,7 +1849,7 @@ __PACKAGE__->register_method({ # read spice ticket from STDIN my $spice_ticket; if ($stateuri && ($stateuri eq 'tcp') && $migratedfrom && ($rpcenv->{type} eq 'cli')) { - if (defined(my $line = <>)) { + if (defined(my $line = )) { chomp $line; $spice_ticket = $line; } diff --git a/PVE/CLI/qm.pm b/PVE/CLI/qm.pm index 564e4439..04beb48e 100755 --- a/PVE/CLI/qm.pm +++ b/PVE/CLI/qm.pm @@ -286,7 +286,7 @@ __PACKAGE__->register_method ({ $tunnel_write->("tunnel online"); $tunnel_write->("ver 1"); - while (my $line = <>) { + while (my $line = ) { chomp $line; if ($line =~ /^quit$/) { $tunnel_write->("OK");