Path to pullnews.in

Elmar K. Bins elmi at internepp.de
Thu Sep 23 09:04:01 UTC 1999


Hi,

I figured out that pullnews was lacking the opportunity to specify
the NNTP port of the target server (usually localhost). I added this
in a little patch attached below. Please review and see if it's good
enough to be integrated into the distribution. If that option has
aleady been integrated into newer INN distributions, simply ignore ;-)

This patch is against pullnews.in from the 990723 stable version.

=== diff -u pullnews.in pullnews.in.old ===
--- pullnews.in Thu Sep 23 10:59:41 1999
+++ pullnews.in.old     Thu Sep 23 10:58:03 1999
@@ -55,13 +55,12 @@
 use Net::NNTP;
 use Getopt::Std ;
 
-$opt_s = $opt_c = $opt_p = undef ;
-getopts("c:p:s:q") ;
+$opt_s = $opt_c = undef ;
+getopts("c:s:q") ;
 
 $groupFile = $opt_c || "$ENV{HOME}/.pullnews";
 $localServer = $opt_s || "localhost" ;
 $quiet = $opt_q ;
-$localPort = $opt_p || 119;
 
 $| = 1 ;
 
@@ -95,10 +94,9 @@
 
 die "No servers!\n" if ! @servers ;
 
-print "Connecting to downstream host $localServer, port $localPort..." unless $quiet;
-my %localopts = ("Port" => "$localPort");
-my $localcxn = Net::NNTP->new($localServer,%localopts) ||
-    die "Cant connect to server $localServer, port $localPort\n" ;
+print "Connecting to downstream host $localServer..." unless $quiet;
+my $localcxn = Net::NNTP->new($localServer) ||
+    die "Cant connect to server $localServer\n" ;
 print "done.\n" unless $quiet;
 
 SEVER: 
================================================

Best regards,
		Elmi.

-- 
"Ingenieurin, Elektrikerin, Architektin und junger Mann mit Knackarsch zum
 Kaffee-Kochen gesucht"              (von einem Plakat, zitiert von Princess)

........................................... whois -h whois.ripe.net ELMI-RIPE


More information about the inn-workers mailing list