Subject: | Bug in File-RsyncP |
Date: | Mon, 04 Oct 2010 10:34:49 -0500 |
To: | bug-File-RsyncP [...] rt.cpan.org |
From: | Rob Poe <rob [...] poeweb.com> |
Netware's version of RSYNC has the following banner when you connect to it:
This is the Netware(r) port of Rsync 2.5.6.
Copyright (C) Andrew Tridgell, Paul Mackerras, Martin Pool
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
Modifications for Novell(r) Netware(r) Copyright (c) 2002 Lee Wiltbank
675 Mass Ave, Cambridge, MA 02139, USA
Welcome.
I can get past this error by putting in
my $cnt = 0;
while ($cnt < 6){
my $line = $rs->getLine;
$cnt++;
}
right before
alarm(0) if ( $rs->{timeout} );
if ( $line !~ /\@RSYNCD:\s*(\d+)/ ) {
return "unexpected response $line\n";
Is there a way that we can ignore anything that's not proper RSYNC
protocol at the beginning of a conversation?
Running most recent version (File-RsyncP-0.70)