Article View: news.software.nntp
Article #82894Uninitialized value in sprintf [INN 2.4.5]
From: John F. Morse
Date: Mon, 08 Mar 2010 16:22
Date: Mon, 08 Mar 2010 16:22
61 lines
3240 bytes
3240 bytes
First-time error from pullnews on INN 2.4.5, which has been running for
about two weeks:
Use of uninitialized value in sprintf at /usr/lib/news/bin/pullnews line 540.
Group command failed: 000
1 #! /usr/bin/perl -w
2 #
3 # Author: James Brister <brister@vix.com> -- berkeley-unix --
4 # Start Date: Sat, 10 Oct 1998 21:40:11 +0200
5 # Project: INN
6 # File: pullnews.pl
7 # RCSId: $Id: pullnews.in 7862 2008-06-08 09:15:41Z iulius $
...
529 sub crossFeedGroup {
530 my ($fromServer,$toServer,$server,$group,$shash) = @_;
531 my ($date,$high) = @{$shash->{$group}};
532 my ($prevDate,$prevHigh) = @{$shash->{$group}};
533 my ($narticles,$first,$last,$name) = $fromServer->group($group);
534 my $count = 0;
535 my $code;
536 my $startTime = time;
537 my ($prevRefused, $prevRejected) = ($info{refused},
$info{rejected});
538
539 if (!defined($narticles)) { # Group command failed.
540 warn sprintf ("Group command failed: %s %s\n",
541 $fromServer->code(), $fromServer->message());
542 return undef;
543 }
Not a big deal, but thought I'd report it.
It runs twice an hour, 15 minutes offset from an INN 2.5.1 server, which
had no error reported by its pullnews.
However, the upstream NSP (Highwinds) may have been down momentarily,
then back up before the newer INN 2.5.1 server's cron polled it.
So, this undefined variable might be already fixed in the newer INN
2.5.1 version:
@@ -538,7 +552,7 @@
my ($prevRefused, $prevRejected) = ($info{refused}, $info{rejected});
if (!defined($narticles)) { # Group command failed.
- warn sprintf ("Group command failed: %s %s\n",
+ warn sprintf ("Group command failed for $group: %s %s\n",
$fromServer->code(), $fromServer->message());
return undef;
}
--
John
When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Technical Details
Message-ID:
<hn388s$osd$1@optima5.xanadu-bbs.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.freenet.de!xlned.com!feeder3.xlned.com!news.glorb.com!optima2.xanadu-bbs.net!optima5.xanadu-bbs.net!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <hn388s$osd$1@optima5.xanadu-bbs.net> Subject: Uninitialized value in sprintf [INN 2.4.5] Date: Mon, 08 Mar 2010 10:22:52 -0600 From: "John F. Morse" <john@example.invalid> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.freenet.de!xlned.com!feeder3.xlned.com!news.glorb.com!optima2.xanadu-bbs.net!optima5.xanadu-bbs.net!not-for-mail Newsgroups: news.software.nntp Organization: Xanadu BBS Lines: 61 Reply-To: dont.bother Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: optima5.xanadu-bbs.net 1268065372 25485 192.168.89.210 (8 Mar 2010 X-Complaints-To: newsmaster@xanadu-bbs.net NNTP-Posting-Date: Mon, 8 Mar 2010 16:22:52 +0000 (UTC) User-Agent: Thunderbird 2.0.0.23 (X11/20090817) X-Enigmail-Version: 0.96.0