Sujet : Re: Modification d'entêtes dans filter_nnrpd.pl
De : schaefer (at) *nospam* alphanet.ch (Marc SCHAEFER)
Groupes : fr.comp.usenet.serveursDate : 22. May 2022, 10:11:12
Autres entêtes
Organisation : Posted through ALPHANET
Message-ID : <t6cr70$p3m$1@shakotay.alphanet.ch>
References : 1 2 3 4 5 6 7
User-Agent : tin/2.4.3-20181224 ("Glen Mhor") (UNIX) (Linux/4.19.0-20-amd64 (x86_64))
Marc SCHAEFER <
schaefer@alphanet.ch> 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 */