🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #85502

Re: Perl filter - attributes hash

#85502
From: Julien ÉLIE
Date: Wed, 29 May 2013 17:39
59 lines
2877 bytes
Hi Steve,

> Regarding the change we discussed to nnrpd/perl.c to make the
> attributes hash accessible to filter_nnrpd.pl: I don't think it ever
> made it into INN's development stream.
> 
> Currently I'm applying the following patch at each INN update:

Thanks for having taken the time to provide a patch.
Is it still working fine with the following additions?  (I still have
not tested.)



Index: nnrpd/perl.c
===================================================================
--- nnrpd/perl.c	(révision 9460)
+++ nnrpd/perl.c	(copie de travail)
@@ -177,6 +187,7 @@
 #endif /* DEBUG_MODIFY */
     }
 
+    hv_undef(attribs);
     hv_undef(hdr);
     sv_setsv(body, &PL_sv_undef);
 
@@ -292,6 +303,7 @@
     }
 
     free(buffer);
+    hv_undef(attribs);
 
     PUTBACK;
     FREETMPS;




Index: innd/perl.c
===================================================================
--- innd/perl.c	(révision 9460)
+++ innd/perl.c	(copie de travail)
@@ -253,6 +253,8 @@
         failure = false;
     }
 
+    hv_undef(mode);
+
     PUTBACK;
     FREETMPS;
     LEAVE;



-- 
Julien ÉLIE

« – Nous parlerons quand l'interprète dormira. [Bong !]
  – Il dort. On peut parler. » (Astérix)
Technical Details
Message-ID: <ko5eh9$90l$1@news.trigofacile.com>
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.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!news.trigofacile.com!.POSTED.aaubervilliers-652-1-221-23.w83-112.abo.wanadoo.fr!not-for-mail
References: <slrnju68be.dtg.steve@snorky.mixmin.net> <jrvt6p$1lk$1@news.trigofacile.com> <slrnjuglko.dtg.steve@snorky.mixmin.net> <jsa8td$m31$2@news.trigofacile.com> <slrnkq9htd.7vp.steve@snorky.mixmin.net>

Show Full Headers
Complete Article Headers
Message-ID: <ko5eh9$90l$1@news.trigofacile.com>
Subject: Re: Perl filter - attributes hash
Date: Wed, 29 May 2013 19:39:53 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <slrnju68be.dtg.steve@snorky.mixmin.net> <jrvt6p$1lk$1@news.trigofacile.com> <slrnjuglko.dtg.steve@snorky.mixmin.net> <jsa8td$m31$2@news.trigofacile.com> <slrnkq9htd.7vp.steve@snorky.mixmin.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.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!news.trigofacile.com!.POSTED.aaubervilliers-652-1-221-23.w83-112.abo.wanadoo.fr!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 29 May 2013 17:39:53 +0000 (UTC)
Injection-Info: news.trigofacile.com;
 posting-host="aaubervilliers-652-1-221-23.w83-112.abo.wanadoo.fr:83.112.108.23";
 logging-data="9237"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8;
In-Reply-To: <slrnkq9htd.7vp.steve@snorky.mixmin.net>
Lines: 58
X-Original-Bytes: 2655