# handle ftp/http urls with wget
if ( $url =~ m!^rsync://(.*)$! )
- { my $src = $1 ;
- my $dst = $src ;
+ { my $dst = $1 ;
$dst =~ s![/\s]!_!g ;
my $TMP = "$tmp_dir/$dst" ;
- $src =~ s!/!::! ;
unlink $TMP ; # ignore status
- my $cmd = "$RSYNC $opt_v $opt_q --no-motd --timeout $timeout $src $TMP" ;
+ my $cmd = "$RSYNC $opt_v $opt_q --no-motd --timeout $timeout $url $TMP" ;
Warn sprintf "'%s'\n", $cmd if $opt{d} ;
system $cmd ;
if ( open TMP, $TMP )