diff options
author | gregor herrmann <gregoa@debian.org> | 2023-09-04 20:15:19 +0200 |
---|---|---|
committer | gregor herrmann <gregoa@debian.org> | 2023-09-04 20:15:19 +0200 |
commit | f67c25d32c8e0785d7098d87a2cc6370c66ad171 (patch) | |
tree | b8b28000376a6e98d92ca7bfb2f7843e06123588 | |
parent | 04a1b1b86f89265de47459bedb155d614daf70fd (diff) | |
parent | bf344d0db3c240c6cf1f46d283bb7a096c8e5fae (diff) |
Update upstream source from tag 'upstream/0.84'
Update to upstream version '0.84'
with Debian dir b6e1ebc5b4a0617acc3a9d380ad20b42a61cbb2e
-rw-r--r-- | Changes | 5 | ||||
-rw-r--r-- | META.json | 6 | ||||
-rw-r--r-- | META.yml | 4 | ||||
-rw-r--r-- | lib/Net/OpenSSH.pm | 21 |
4 files changed, 26 insertions, 10 deletions
@@ -1,5 +1,10 @@ Revision history for Perl extension Net::OpenSSH. +0.84 Jul 2, 2023 + - Fix scp/rsync_get handling of multiple source files (bug + report by Diab Jerius). + - Document how to run interative sftp sessions. + 0.83 Jan 22, 2023 - Skip quoting test for broken AIX csh shell (bug report by jrtaisto@gmail.com, #rt133092). @@ -4,7 +4,7 @@ "Salvador Fandino <sfandino@yahoo.com>" ], "dynamic_config" : 1, - "generated_by" : "ExtUtils::MakeMaker version 7.62, CPAN::Meta::Converter version 2.150010", + "generated_by" : "ExtUtils::MakeMaker version 7.64, CPAN::Meta::Converter version 2.150010", "license" : [ "perl_5" ], @@ -42,6 +42,6 @@ "url" : "https://github.com/salva/p5-Net-OpenSSH" } }, - "version" : "0.83", - "x_serialization_backend" : "JSON::PP version 4.06" + "version" : "0.84", + "x_serialization_backend" : "JSON::PP version 4.07" } @@ -7,7 +7,7 @@ build_requires: configure_requires: ExtUtils::MakeMaker: '0' dynamic_config: 1 -generated_by: 'ExtUtils::MakeMaker version 7.62, CPAN::Meta::Converter version 2.150010' +generated_by: 'ExtUtils::MakeMaker version 7.64, CPAN::Meta::Converter version 2.150010' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -21,5 +21,5 @@ requires: Test::More: '0' resources: repository: https://github.com/salva/p5-Net-OpenSSH -version: '0.83' +version: '0.84' x_serialization_backend: 'CPAN::Meta::YAML version 0.018' diff --git a/lib/Net/OpenSSH.pm b/lib/Net/OpenSSH.pm index c9db163..49fc9f7 100644 --- a/lib/Net/OpenSSH.pm +++ b/lib/Net/OpenSSH.pm @@ -1,6 +1,6 @@ package Net::OpenSSH; -our $VERSION = '0.83'; +our $VERSION = '0.84'; use strict; use warnings; @@ -2222,10 +2222,9 @@ sub _scp_get_args { my $prefix = $self->{_host_squared}; $prefix = "$self->{_user}\@$prefix" if defined $self->{_user}; - my $src = "$prefix:". join(" ", $self->_quote_args({quote_args => 1, - glob_quoting => $glob}, - @_)); - ($self, \%opts, $target, $src); + my @src = map "$prefix:". $self->_quote_args({quote_args => 1, + glob_quoting => $glob}, $_), @_; + ($self, \%opts, $target, @src); } sub scp_get { @@ -5114,6 +5113,18 @@ B<A>: Just call the C<system> method with an empty argument list: my $ssh = Net::OpenSSH->new(...); $ssh->system; +B<Q>: How about running an interactive C<sftp> session? + +B<A>: Programs that use an underlying ssh connection usually provide +some way (for instance, command line option C<-o>) to pass additional +options for the C<ssh> command used to run that connection. We just +need to use such mechanism to pass the path to the control socket. + +For instance, for the particular case of C<sftp>: + + $cp = $ssh->get_ctl_path; + system "sftp", "-oControlPath=$cp", $host; + =back =head1 SEE ALSO |