Skip Menu |
 

This queue is for tickets about the Net-SSH-Perl CPAN distribution.

Report information
The Basics
Id: 32730
Status: resolved
Priority: 0/
Queue: Net-SSH-Perl

People
Owner: Nobody in particular
Requestors: rcp [...] rcable.co.uk
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: 1.31



Subject: Empty stdin not handled correctly for SSH2
Download (untitled) / with headers
text/plain 454b
Distribution: Net-SSH-Perl-1.30 Perl version: 5.8.8 Operating System: Solaris 10 (Intel) When a command is sent with standard input: $ssh->cmd('cat - >local_file', $contents); Net::SSH::Perl will not supply any input if $contents is empty, so the server sits patiently waiting for it. Changing line 140 in lib/Net/SSH/Perl/SSH2.pm from: if ($stdin) { to: if (defined $stdin) { fixes the problem (this is already handled correctly for SSH1).
Thanks for the fix, applied in version 1.31.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.