develooper Front page | perl.beginners | Postings from February 2002

No access to /etc/protocols

Thread Next
From:
Paul Murphy
Date:
February 27, 2002 02:48
Subject:
No access to /etc/protocols
Message ID:
F143XlTy2BFl67Xlgh800021458@hotmail.com

Hello everyone.

My ISP doesn't have /etc/protocols world readable, and so IO::Socket doesn't 
work, as getprotobyname and getprotobynumber fail.

I am using the Mail::POP3Client wrapper.

I am trying to come up with a workaround, and the best I can come up with is 
a horrendous hack to IO::Socket::INET so that it knows that tcp is protocol 
6 and vice versa.

My ideal would be to store a local copy of /etc/protocols for Perl, and 
somehow fool it into resolving there rather then the real one.

Does anyone have any tips?  I can't modify anything too fundamental with 
Perl, as I am running their binary.

Paul.



_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About