🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by John F. Morse Mon, 22 Jun 2009 07:08
perl-nocem uninitialized value
#81453
Author: John F. Morse
Date: Mon, 22 Jun 2009 07:08
35 lines
2364 bytes
The following error was in the Daily Report, 2115 times:

Use of uninitialized value $msgid in concatenation (.) or string at
/usr/lib/news/bin/perl-nocem line 158.

I found them in /var/log/news/OLD/errlog.1.gz which has these errors
logged, but no time of error is logged. Two hours have passed since the
Daily Report was generated, and I do not see anything in
/var/log/news/errlog -- yet. I'm wondering if the problem was early in
the day yesterday, or there is still a problem that hasn't yet surfaced
for today.

Here is the perl-nocem script:


    156     # must be a PGP signed NoCeM.
    157     if (not $ispgp) {
    158         logmsg("Article $msgid: not PGP signed", 'debug');
    159         return;
    160     }
    161     if (not $isncm) {
    162         logmsg("Article $msgid: not a NoCeM", 'debug');
    163         return;
    164     }


Anything look odd in it that would cause the errors?


-- 
John 

No Microsoft, Apple, AT&T, Novell, Trend Micro, nor Ford products were used in the preparation or transmission of this message.

The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.
Re: perl-nocem uninitialized value
#81456
Author: Julien ÉLIE
Date: Mon, 22 Jun 2009 16:21
31 lines
2239 bytes
Hi John,

> The following error was in the Daily Report, 2115 times:
>
> Use of uninitialized value $msgid in concatenation (.) or string at
> /usr/lib/news/bin/perl-nocem line 158.

Thanks for having reported the problem.
However, I have already fixed it in INN 2.5.0:

    http://inn.eyrie.org/trac/changeset/8419/trunk/control/perl-nocem.in

Index: trunk/control/perl-nocem.in
===================================================================
--- trunk/control/perl-nocem.in (revision 8274)
+++ trunk/control/perl-nocem.in (revision 8419)
@@ -134,5 +134,6 @@
     my $i = 0;
     my $body = '';
-    my ($from, $msgid);
+    my $from = '';
+    my $msgid = '<>';
     while (<$artfh>) {
         last if $i++ > 200;

-- 
Julien ÉLIE

« Un ami fidèle qui parle très bien votre langue et toutes
  les langues vivantes : le latin, le grec, le celte, etc. » (Astérix) 
Re: perl-nocem uninitialized value
#81460
Author: John F. Morse
Date: Tue, 23 Jun 2009 01:24
38 lines
2435 bytes
Julien ÉLIE wrote:
> Hi John,
>
>> The following error was in the Daily Report, 2115 times:
>>
>> Use of uninitialized value $msgid in concatenation (.) or string at
>> /usr/lib/news/bin/perl-nocem line 158.
>
> Thanks for having reported the problem.
> However, I have already fixed it in INN 2.5.0:
>
>    http://inn.eyrie.org/trac/changeset/8419/trunk/control/perl-nocem.in
>
> Index: trunk/control/perl-nocem.in
> ===================================================================
> --- trunk/control/perl-nocem.in (revision 8274)
> +++ trunk/control/perl-nocem.in (revision 8419)
> @@ -134,5 +134,6 @@
>     my $i = 0;
>     my $body = '';
> -    my ($from, $msgid);
> +    my $from = '';
> +    my $msgid = '<>';
>     while (<$artfh>) {
>         last if $i++ > 200;
>

Thanks Julien.

That patch should work in INN 2.4.5 I presume?


-- 
John 

No Microsoft, Apple, AT&T, Novell, Trend Micro, nor Ford products were used in the preparation or transmission of this message.

The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.
Re: perl-nocem uninitialized value
#81462
Author: Julien ÉLIE
Date: Tue, 23 Jun 2009 06:23
10 lines
1588 bytes
> That patch should work in INN 2.4.5 I presume?

Yes, John.

-- 
Julien ÉLIE

« Il y a deux sortes de justice : vous avez l'avocat qui connaît bien la loi,
  et l'avocat qui connaît bien le juge ! » (Coluche) 
Re: perl-nocem uninitialized value
#81464
Author: John F. Morse
Date: Tue, 23 Jun 2009 08:06
15 lines
1704 bytes
Julien ÉLIE wrote:
>> That patch should work in INN 2.4.5 I presume?
>
> Yes, John.
>

Thank you, my friend.


-- 
John 

No Microsoft, Apple, AT&T, Novell, Trend Micro, nor Ford products were used in the preparation or transmission of this message.

The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads