Skip Menu |
 

This queue is for tickets about the cpan-upload CPAN distribution.

Report information
The Basics
Id: 38683
Status: new
Priority: 0/
Queue: cpan-upload

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 2.2
Fixed in: (no value)

Attachments


Subject: Option to enable passive FTP; patch included
MIME-Version: 1.0
X-Mailer: MIME-tools 5.426 (Entity 5.426)
Charset: utf8
X-RT-Original-Encoding: utf-8
Content-Type: multipart/mixed; boundary="----------=_1219483874-824-5"
Content-Length: 0
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
Content-Length: 171
Download (untitled) / with headers
text/plain 171b
Hi, I think it would be nice if this script had an option to enable passive FTP. I have attached a patch to do this. Regards, -- Steven Chamberlain steven@pyro.eu.org
Subject: cpan-upload-passive-ftp-option.diff
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="----------=_1219483874-824-4"
X-Mailer: MIME-tools 5.426 (Entity 5.426)
Charset: utf8
Content-Length: 0
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: iso-8859-1
Content-Length: 0
Content-Type: text/x-diff; name="cpan-upload-passive-ftp-option.diff"
Content-Disposition: inline; filename="cpan-upload-passive-ftp-option.diff"
Content-Transfer-Encoding: binary
Content-Length: 1214
diff -Nru cpan-upload-2.2.orig/cpan-upload cpan-upload-2.2/cpan-upload --- cpan-upload-2.2.orig/cpan-upload 2002-07-02 22:44:10.000000000 +0100 +++ cpan-upload-2.2/cpan-upload 2008-08-23 10:19:11.000000000 +0100 @@ -83,6 +83,7 @@ $config->define('ftp_proxy'); $config->define('http_proxy'); $config->define('non_interactive', { ALIAS => 'ni', ARGCOUNT => 0 }); + $config->define('passive', { ARGCOUNT => 0 }); #------------------------------------------------------------------- # Read the user's config file, if they have one, @@ -177,6 +178,12 @@ } } + if ($config->passive) + { + _debug(" enabling passive mode FTP\n"); + push(@new_args, 'Passive' => 1); + } + #------------------------------------------------------------------- # ... and then we actually make the connection and log in #------------------------------------------------------------------- @@ -471,6 +478,10 @@ cpan-upload should not prompt for any missing information (eg password), it should just warn or die, as appropriate. +=item -passive + +Enables passive mode for FTP connections. + =item -help Displays a short help message with the OPTIONS section


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.