Path: ...!weretis.net!feeder8.news.weretis.net!news.imp.ch!news.alphanet.ch!alphanet.ch!.POSTED!not-for-mail From: Marc SCHAEFER Newsgroups: fr.comp.usenet.serveurs Subject: Re: Modification =?ISO-8859-1?Q?d=27ent=EAtes?= dans filter_nnrpd.pl Date: Sun, 22 May 2022 08:11:12 -0000 (UTC) Organization: Posted through ALPHANET Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 22 May 2022 08:11:12 -0000 (UTC) Injection-Info: shakotay.alphanet.ch; posting-account="schaefer"; logging-data="25718"; mail-complaints-to="usenet@alphanet.ch" User-Agent: tin/2.4.3-20181224 ("Glen Mhor") (UNIX) (Linux/4.19.0-20-amd64 (x86_64)) Cancel-Lock: sha256:PjZ1GVxKxHNrCxMcdJfWO5R9ivS3D6zs0fPEvrAgskU= Bytes: 2355 Lines: 33 Marc SCHAEFER wrote: > Au moins, sur un conteneur avec Debian buster amd64 et une installation > neuve d'INN2, ça marche sans souci. Reste à trouver la différence. Et en production, en recompilation INN2 des sources avec les modifications suivantes, ça marche aussi. Je vais essayer de comprendre pourquoi :) --- inn2-2.6.3.orig/nnrpd/perl.c +++ inn2-2.6.3/nnrpd/perl.c @@ -42,7 +42,7 @@ extern bool HeadersModified; extern bool PerlLoaded; -/* #define DEBUG_MODIFY only if you want to see verbose output. */ +#define DEBUG_MODIFY /* only if you want to see verbose output. */ #ifdef DEBUG_MODIFY static FILE *flog; void dumpTable(const char *msg); --- inn2-2.6.3.orig/nnrpd/perl.c +++ inn2-2.6.3/nnrpd/perl.c @@ -77,7 +77,7 @@ HandleHeaders(char *article) return NULL; /* Not really necessary. */ #ifdef DEBUG_MODIFY - if ((flog = fopen("/var/news/log/nnrpdperlerrror", "a+")) == NULL) { + if ((flog = fopen("/var/log/news/nnrpdperlerrror", "a+")) == NULL) { syslog(L_ERROR,"Whoops. Can't open error log: %m"); } #endif /* DEBUG_MODIFY */