fix sftp xfers in zmfilter (#1677)

This commit is contained in:
Andrew Bauer 2016-11-07 15:08:43 -06:00 committed by Isaac Connor
parent 976c2eee0f
commit 29e48da3b9
2 changed files with 3 additions and 3 deletions

0
scripts/zm.in Executable file → Normal file
View File

6
scripts/zmfilter.pl.in Executable file → Normal file
View File

@ -552,9 +552,9 @@ sub uploadArchFile
$sftpOptions{timeout} = $Config{ZM_UPLOAD_TIMEOUT} $sftpOptions{timeout} = $Config{ZM_UPLOAD_TIMEOUT}
if $Config{ZM_UPLOAD_TIMEOUT}; if $Config{ZM_UPLOAD_TIMEOUT};
my @more_ssh_args; my @more_ssh_args;
push @more_ssh_args, ['-o'=>'StrictHostKeyChecking=no'] push @more_ssh_args, '-o'=>'StrictHostKeyChecking=no'
if ! $Config{ZM_UPLOAD_STRICT}; if ! $Config{ZM_UPLOAD_STRICT};
push @more_ssh_args, ['-v'] push @more_ssh_args, '-v'
if $Config{ZM_UPLOAD_DEBUG}; if $Config{ZM_UPLOAD_DEBUG};
$sftpOptions{more} = [@more_ssh_args]; $sftpOptions{more} = [@more_ssh_args];
my $sftp = Net::SFTP::Foreign->new( $Config{ZM_UPLOAD_HOST}, %sftpOptions ); my $sftp = Net::SFTP::Foreign->new( $Config{ZM_UPLOAD_HOST}, %sftpOptions );