Skip Menu |

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

Report information
The Basics
Id: 73051
Status: resolved
Priority: 0/
Queue: Net-OpenSSH

People
Owner: Nobody in particular
Requestors: MITHUN [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in:
  • 0.53_03
  • 0.53_04
  • 0.53_05
  • 0.54
Fixed in: (no value)



Subject: place '--' in ssh command after host name breaks rsync
The Change "place '--' in ssh command after host name" in 0.53_03 breaks rsync and possibly scp. The following piece of code - use Net::OpenSSH; $Net::OpenSSH::debug ||= 8; # Init control my $ssh = Net::OpenSSH->new('test_remote_host'); # Rsync _get_ $ssh->rsync_get( { checksum => 1, archive => 1, delete => 1, }, '/path/to/remote/file', '/path/to/local/file' ); will cause an rsync call of rsync -e ssh -q -o User=mithun -- --blocking-io -q --checksum -- archive --delete -- test_remote_host:/path/to/remote/file /path/to/local/file The extra '--' in the transport args causes trouble if not quoted. i.e, rsync -e "ssh -q -o User=mithun --" --blocking-io -q --checksum -- archive --delete -- test_remote_host:/path/to/remote/file /path/to/local/file I'm guessing _rsync_quote might need some extra logic to provide a fully quoted transport arg. Thanks, Mithun
Subject: Re: [rt.cpan.org #73051] place '--' in ssh command after host name breaks rsync
Date: Tue, 6 Dec 2011 13:42:46 -0800 (PST)
To: "bug-Net-OpenSSH [...] rt.cpan.org" <bug-Net-OpenSSH [...] rt.cpan.org>
From: Salvador Fandino <sfandino [...] yahoo.com>
I have just uploaded 0.55 to CPAN that solves that bug: https://metacpan.org/release/SALVA/Net-OpenSSH-0.55 Thank you for reporting it! Show quoted text
>________________________________ > From: Mithun Ayachit via RT <bug-Net-OpenSSH@rt.cpan.org> >To: >Sent: Tuesday, December 6, 2011 6:30 PM >Subject: [rt.cpan.org #73051] place '--' in ssh command after host name breaks rsync > >Tue Dec 06 12:30:19 2011: Request 73051 was acted upon. >Transaction: Ticket created by MITHUN >      Queue: Net-OpenSSH >    Subject: place '--' in ssh command after host name breaks rsync >  Broken in: 0.53_03, 0.53_04, 0.53_05, 0.54 >    Severity: Important >      Owner: Nobody >  Requestors: MITHUN@cpan.org >      Status: new >Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=73051 > > > >The Change "place '--' in ssh command after host name" in 0.53_03 breaks >rsync and possibly scp. The following piece of code - > > >    use Net::OpenSSH; >    $Net::OpenSSH::debug ||= 8; > >    # Init control >    my $ssh = Net::OpenSSH->new('test_remote_host'); > >    # Rsync _get_ >    $ssh->rsync_get( >        { >            checksum => 1, >            archive  => 1, >            delete  => 1, >        }, >        '/path/to/remote/file', >        '/path/to/local/file' >    ); > >will cause an rsync call of > >    rsync -e ssh -q -o User=mithun -- --blocking-io -q --checksum -- >archive --delete -- test_remote_host:/path/to/remote/file >/path/to/local/file > >The extra '--' in the transport args causes trouble if not quoted. i.e, > >    rsync -e "ssh -q -o User=mithun --" --blocking-io -q --checksum -- >archive --delete -- test_remote_host:/path/to/remote/file >/path/to/local/file > >I'm guessing _rsync_quote might need some extra logic to provide a fully >quoted transport arg. > >Thanks, >Mithun > > >