[PATCH] Net::FTP - get firewall type from Net::Config

I'm playing around with fetching things from the CPAN shell here. We have an
FTP and an HTTP proxy here.

While stepping through things in the debugger, I notice that Net::FTP::new
loads $fire from $arg{Firewall} || $ENV{FTP_FIREWALL} ||
$NetConfig{ftp_firewall} || undef; $fire_type is initialised similarly but
%NetConfig is not consulted. Is this deliberate? If not, I suggest the
following patch:

--- /home/pne/tmp/install/perl-5.8.0/lib/Net/FTP.pm	Sat Jun  1 19:03:20
+++ /home/pne/lib/perl5/5.8.0/Net/FTP.pm	Tue Jan 28 11:29:10 2003
@@ -70,6 +70,7 @@
      delete $arg{Port};
 	 $fire_type = $arg{FirewallType}
+	 || $NetConfig{firewall_type}
 	 || undef;
End of patch.

Oh -- this is for Net::FTP v2.65.

Philip Newton <Philip.Newton@datenrevision.de>
All opinions are my own, not my employer's.
If you're not part of the solution, you're part of the precipitate.
1/28/2003 10:34:51 AM
perl.perl5.porters 48287 articles. 1 followers. Follow

0 Replies

Similar Articles

[PageSpeed] 49


Similar Artilces:

[PATCH lib/Net/Config.pm, MANIFEST, t/lib/Mock/Socket.pm, lib/Net/Config.t] Add Tests for Net::Config
Here's a test suite for Net::Config. In the process of writing this, I've fixed an apparent bug that prevented single values from becoming array references when necessary. I think it's right, but perhaps Graham should weigh in on this. In the process, with some advice from perl-qa, I've added a mock object so the test could control the output of Socket::inet_ntoa() and Socket::inet_aton(). t/lib/Mock/ seemed like as good a place as any. I'm happy to rework this patch if it personally offends anyone whose opinion matters. :) -- c --- lib/Net/~Config.pm S...

Net:FTP, Net::Cmd
I'm using Net::FTp and Net::Cmd modules in a script to completely automate some FTPing stuff. snippet $ftp->put($fileh,"/tmp/test.txt") || die "cant put the file\n"; $ftp->command("chmod","755","test.txt") || die "Cant run quot\n"; $ftp->quit(); I have no luck making the $ftp->command stuff to work. I'm using solaris 5.8 ftp client. Anyway, I can make this work? Native Solaris ftp client/server can not support "quot site" stuff. Am I out of luck?? Please dont offer suggestions to use &...

Net::SSH and Net::FTP?
------_=_NextPart_001_01C3B7DF.20E3F54A Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I would like to use SSH to login to a remote system, then using FTP, upload a file from the remote machine to another machine which will display the data. If I can automate this process, I think I'll be in great shape, tell me does this code seem like it would work for this? >use Net::SSH::Perl;=20 >my $ssh =3D Net::SSH::Perl->new($host); #Logging into the remote = machine >$ssh->login;=20 >my($READ, $WRITE) =3D $ssh-&...

------_=_NextPart_001_01C6429F.D89AA417 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello, Net::LDAP Net::LDAPS Is there a possible to LDAP bind with an encrypted (SHA, SSHA, CRYPT, ....) password? I don't like to write the secret password to the perl file. Best regards Barbara Wilbert ------_=_NextPart_001_01C6429F.D89AA417-- Wilbert Barbara (CI/OSI) * wrote: > Hello, > > Net::LDAP > Net::LDAPS > > Is there a possible to LDAP bind with an encrypted (SHA, SSHA, CRYPT, > ......

All, This is probably a much harder question than what should go in the "Getting Started" forum, but I am new and don't know where to put it. Anyways, I am currently developing an FTP class in VB.NET. It's kid tested, mother approved when trying to access an FTP Server on a Windows box meaning I can connect, run commands, upload and download a file no problem. My issues come when I try to use the same class with the same commands to access an FTP server on a UNIX box. I can connect and login just fine, but after that all my commands come back "500 'PWD': command not understood.". This is fo...

Net::FTP seems to be in the core distribution now, so here goes: The docs say that when the hash method is called with no arguments, hash marks should be suppressed, also that when a non-reference true value is supplied as the first argument, that \*STDERR is assumed. Neither of these is true. The docs also imply that the return value should be an array ref of the current values, not the previous value. (If they should return the previous values, then the docs should be changed, along with changing this patch). Here's a patch fixing the above issues (version 2.58) to my ...

Difference between var type of .NET 3.5 and object Data Type in .NET 2.0?
Hi All,With .NET 3.5 a new feature is introduced of defining Anonymous Type.You can achieve this with keyword "var".We can achieve the same functionality in .NET 2.0 with object type.What is the difference between var type of .NET 3.5 and object Data Type in .NET 2.0?Virendra (MCTS)My Site, Blog virendra1983:With .NET 3.5 a new feature is introduced of defining Anonymous Type. var types are actually strongly typed in design time. What happens in the IDE infers the type of the object based on its initialisation so you get strong typing and intellisensee.g.var i = 9...

After migration from .Net 1.1 to .Net 3.5 do I have to incorporate new web.config settings in old *.config file
Hi,I have successfully migrated web application from .Net 1.1 to .Net 3.5. Could you let me know whether I have to incorporate setting in new web.config (this new web.config file was generated automatically due to migration) into old *.config file?FYI: Old *.config file contains all application level settings required. So I will continue to use old.config file by removing new web.config file. Settings which are in new web.config file are:<configSections><sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup,...

Y2K patch for Net::FTP
Since not everyone has their acts together... *** FTP.pm~ Sat Sep 18 11:26:18 1999 --- FTP.pm Tue Jan 11 12:04:12 2000 *************** *** 184,196 **** sub mdtm { my $ftp = shift; my $file = shift; ! $ftp->_MDTM($file) && $ftp->message =~ /(\d{4})(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)/ ! ? timegm($6,$5,$4,$3,$2-1,$1 - 1900) ! : undef; } sub size { my $ftp = shift; my $file = shift; --- 184,202 ---- sub mdtm { my $ftp = shift; my $file = shift; ! $ftp->_MDTM($file) || return undef; ! ! if ($...

Documentation patch for Net::FTP
In Net::FTP, if you want hash marks to be printed while a file is uploaded, the documentation suggests passing a 'Hash' key with a true value to the constructor. But this value is used as a filehandle. Thus: *** FTP.pm.orig Wed Jun 20 22:59:13 2001 --- FTP.pm Wed Jun 20 22:59:57 2001 *************** *** 1227,1236 **** servers, and some firewall configurations. This can also be set by the environment variable C<FTP_PASSIVE>. ! B<Hash> - If TRUE, print hash marks (#) on STDERR every 1024 bytes. This ! simply invokes the C<hash()> method for y...

net send in .net
Hi,  I am trying to execute net send comman in my vb.net code. But I am getting "win32 exception unhandled error". Please help me. My code is:Dim psi As New ProcessStartInfo() psi.UseShellExecute = False psi.FileName = "Net send" 'xxx.xxx.xx.xx  - IP address of a system in my network psi.Arguments = "xxx.xxx.xx.xx test" Process.Start(psi)  Thanks in advance! Shwetha Tryu changing   psi.FileName = "Net send" 'xxx.xxx.xx.xx  - IP address of a system in my network psi.Arguments = "xxx.xxx.xx.xx test&quo...

ftp folder using asp.net(vb.net)
 can i ftp a folder to a server using asp.net? anyone? thanks  Yes, you can use one of the Ftp components available, or just use the WebClient classhttp://www.windowsdevcenter.com/pub/a/windows/2006/12/12/building-ftp-services-using-net-20.html -- "Mark As Answer" if my reply helped you -- Yes, you can do it.  You actually just grab all the files out of the folder and send them up. See this: http://forums.asp.net/p/1288676/2483713.aspx Jason...

[PATCH] Net/FTP.pm
What happened here? A cut'n'paste error? --- bleedperl/lib/Net/FTP.pm Mon Jun 2 15:28:13 2003 +++ bleedperl2/lib/Net/FTP.pm Thu Jun 12 21:19:09 2003 @@ -392,6 +392,9 @@ sub type ${*$ftp}{'net_ftp_type'} = join(" ",$type,@_); + $oldval; +} + sub alloc { my $ftp = shift; @@ -405,9 +408,6 @@ sub alloc unless ($ftp->_ALLO($size,@_)); ${*$ftp}{'net_ftp_allo'} = join(" ",$size,@_); - - $oldval; -} $oldval; } -- Slaven Rezic - slaven@rezic.de babybike - routeplanner for cyclists in Berlin ...

Sorry if this is basic, but thats where i'm at. What is the difference between .NET and ASP.NET? Is ASP.NET an offshoot from .NET? I'm looking to do a training course and just need some facts here. I'm a newbie web developer. Thanks Dan At its simplest level .NET to a developer usually refers to the .NET Framework, which is a set of classes that you can extend to create your software applications. ASP.NET is a way of building a web based user interface for your application using the .NET Framework. Dan. Cheers Dan, some home work required for me i think. Thanks Dan...

Can anyone suggest a good book(s) on ASP.NET, ADO.NET and VB.NET, I have familiar ASP 2.0 and have used VB 6 a few times, so I’m a total newbie, to this type of thing. Thanks Jason One free place to start is the Quickstart tutorials. They are available on the tutorials tab on this website. The best "starting out" book, IMO, is still "ASP.NET Unleashed", by Stephen Walther. This gives you an excellent introduction to all of the essentials. From there, it would depend on your needs. BTW - there is a "Book Review" forum within the ASP.NET Forums t...

Web resources about - [PATCH] Net::FTP - get firewall type from Net::Config - perl.perl5.porters

Resources last updated: 12/19/2015 2:00:16 AM