Thread View: news.software.nntp
61 messages
61 total messages
Page 2 of 2
Started by Julien ÉLIE
Sat, 16 Jan 2021 09:32
Page 2 of 2 • 61 total messages
Re: SLRN build fail on macOS
Author: Julien ÉLIE
Date: Wed, 10 Feb 2021 22:10
Date: Wed, 10 Feb 2021 22:10
56 lines
3606 bytes
3606 bytes
Bonsoir Gérald,
> Thanks to Jean-Pierre Kuypers on fr.*, the problem is known but the
> author of the patch says that he doesn't find where to submit it:
> https://trac.macports.org/ticket/61662
After 4 years without any changes in slrn source code, there have been 3
commits upstream last month from "jedsoft":
https://github.com/arafel/slrn/commits/master
So indeed the best move would be to contact that person (John E. Davis -
http://www.jedsoft.org/) as well as the slrn-user mailing-list (only 6
messages in 2020 according to Gmane archives...).
Note that the patch is related to "configure". The real file to be
patched upstream is autoconf/configure.ac, which contains the initial
definition:
AC_DEFUN(CF_VA_COPY,
[
dnl# va_copy checks taken from glib 1.2.8
dnl#
dnl# we currently check for all three va_copy possibilities, so we get
dnl# all results in config.log for bug reports.
AC_MSG_CHECKING(for an implementation of va_copy())
AC_CACHE_VAL(slrn_cv_va_copy,[
AC_RUN_IFELSE([AC_LANG_SOURCE([[
#include <stdarg.h>
void f (int i, ...) {
[...]
I believe they should use instead the following portable code from
rra-c-util:
/*
* C99 requires va_copy. Older versions of GCC provide __va_copy. Per the
* Autoconf manual, memcpy is a generally portable fallback.
*/
#ifndef va_copy
# ifdef __va_copy
# define va_copy(d, s) __va_copy((d), (s))
# else
# define va_copy(d, s) memcpy(&(d), &(s), sizeof(va_list))
# endif
#endif
--
Julien ÉLIE
« Quelle folie, Ô Astérix, que de t'être venu fourrer dans la gueule de
la louve romaine. » (Astérix)
Re: RFC 8315 perl hooks for Inn
Author: Michael Bäuerle
Date: Thu, 11 Feb 2021 21:29
Date: Thu, 11 Feb 2021 21:29
22 lines
2501 bytes
2501 bytes
Gérald Niel wrote: > Michael Bäuerle écrivait sur news.software.nntp : > > > > AFAIK the Perl based server implementations do not create MD5 based > > locks/keys too. > > Yes right, I've adapted the code to use sha256 instead of sha1 for the > Cancel-Lock/Key as the RFC8315 specification. > > But in cleanfeed.local it take care about sha256, sha1 or md5 for the > verification. > I've only added the sha256, sha1 and md5 verifications was already in > the original code. Capability to verify SHA512 would be nice to have too. It is registered with "COMMON" for "Intended Usage": <https://www.iana.org/assignments/netnews-parameters/netnews-parameters.xhtml#cancel-lock-hash-algorithms> > I use libcanlock with slrn on linux (Debian buster) and it use sha1. This is the expected behaviour without patches (via the V2 API emulation of libcanlock).
Re: RFC 8315 perl hooks for Inn
Author: Gérald Niel
Date: Fri, 12 Feb 2021 07:22
Date: Fri, 12 Feb 2021 07:22
19 lines
2470 bytes
2470 bytes
Le Jeudi 11 février 2021 à 21:29 UTC, Michael Bäuerle écrivait sur news.software.nntp : > Capability to verify SHA512 would be nice to have too. > It is registered with "COMMON" for "Intended Usage": > <https://www.iana.org/assignments/netnews-parameters/netnews-parameters.xhtml#cancel-lock-hash-algorithms> I've updated cleanfeed.local and the patch. > This is the expected behaviour without patches (via the V2 API emulation > of libcanlock). Yes. -- On ne le dira jamais assez, l'anarchisme, c'est l'ordre sans le gouvernement ; c'est la paix sans la violence. C'est le contraire précisément de tout ce qu'on lui reproche, soit par ignorance, soit par mauvaise foi. -+- Hem Day -+-
Re: Systems running news servers
Author: Neodome Admin
Date: Sat, 13 Feb 2021 08:27
Date: Sat, 13 Feb 2021 08:27
55 lines
3345 bytes
3345 bytes
Gérald Niel <gerald.niel+spam@gegeweb.invalid> wrote: > Le vendredi 22 janvier 2021 à 20:40 GMT, Adam H. Kerman écrivait sur > news.software.nntp : > >> Your server, your rules. It's not my place to tell to disallow them. I >> am observing, nevertheless, that third-party cancels that aren't issued >> to address unsolicited advertising or spam are abuse on Usenet. News >> administrator don't always have to deal with abuse on Usenet. > > Sorry, my English is not fluent enough. > I don't know if what I write really means what I want to express and > would express in my native language (French). > And please feel free to redirect this topic to the most appropriate > group. > > From what I can see, the server news.deodome.net is an open server, it > can be used to read and post on usenet without authentication. Yes. This is done on purpose. > It can be used to post anonymously (I have no problem with that), but > with no way to trace the source if it is abused: > Injection-Info: neodome.net; mail-complaints-to="abuse@neodome.net" Yes, this is also done on purpose. > The abuse address doesn't reply. I replied to you over here. Since you started our conversation with threats I suspected you wouldn’t want to listen to me telling you about Cancel-Locks and things like that. I, however, hoped that you would listen to other people in this group who would tell you pretty much the same thing. > And its administrator answers that it's a feature and not a bug when a > abuse is reported about illegitimate cancel. Illegitimate cancel of *your* post. Right? You know, I’m fine with people having decades-long rivalry on Usenet. I guess that’s the nature of the game. Usenet is old medium. I, however, would really appreciate if you people would keep me out of your personal wars. I’m just trying to provide access to the Usenet for everyone. Seriously, that’s my point. Do you understand what I’m trying to say? > I will therefore, for my part, take more radical measures than simply > refusing cancellations from this server. And report it to the > French-speaking newsmaster community. They will see on their side what > they think is good to do to protect themselves and their users from > possible abuses that could come from this server. Don’t forget to go complain to your momma. -- Neodome
Re: SLRN build fail on macOS
Author: Gérald Niel
Date: Sat, 13 Feb 2021 08:28
Date: Sat, 13 Feb 2021 08:28
30 lines
2781 bytes
2781 bytes
Le Mercredi 10 février 2021 à 22:10 UTC, Julien ÉLIE écrivait sur news.software.nntp : > I believe they should use instead the following portable code from > rra-c-util: > /* > * C99 requires va_copy. Older versions of GCC provide __va_copy. Per the > * Autoconf manual, memcpy is a generally portable fallback. > */ > #ifndef va_copy > # ifdef __va_copy > # define va_copy(d, s) __va_copy((d), (s)) > # else > # define va_copy(d, s) memcpy(&(d), &(s), sizeof(va_list)) > # endif > #endif As I said, it's beyond my skills or knowledge. What is the file to patch with this? Anything else to modify? I could test, and if it works submit the patch to the Git repository. ;) @+ -- On ne le dira jamais assez, l'anarchisme, c'est l'ordre sans le gouvernement ; c'est la paix sans la violence. C'est le contraire précisément de tout ce qu'on lui reproche, soit par ignorance, soit par mauvaise foi. -+- Hem Day -+-
Re: SLRN build fail on macOS
Author: Julien ÉLIE
Date: Sat, 13 Feb 2021 09:24
Date: Sat, 13 Feb 2021 09:24
46 lines
3571 bytes
3571 bytes
Bonjour Gérald,
>> #ifndef va_copy
>> # ifdef __va_copy
>> # define va_copy(d, s) __va_copy((d), (s))
>> # else
>> # define va_copy(d, s) memcpy(&(d), &(s), sizeof(va_list))
>> # endif
>> #endif
>
> As I said, it's beyond my skills or knowledge.
> What is the file to patch with this?
> Anything else to modify?
I see that VA_COPY is only used twice in srln source code.
Once in src/snprintf.c, where there is:
/* Define VA_COPY() to do the right thing for copying va_list variables.
* config.h may have already defined VA_COPY as va_copy or __va_copy.
*/
#ifndef VA_COPY
# if (defined (__GNUC__) && defined (__PPC__) && (defined (_CALL_SYSV)
|| defined (__WIN32__))) || defined (__WATCOMC__)
# define VA_COPY(ap1, ap2) (*(ap1) = *(ap2))
# elif defined (VA_COPY_AS_ARRAY)
# define VA_COPY(ap1, ap2) memmove ((ap1), (ap2), sizeof (va_list))
# else /* va_list is a pointer */
# define VA_COPY(ap1, ap2) ((ap1) = (ap2))
# endif /* va_list is a pointer */
#endif /* !VA_COPY */
And another time in src/misc.c where that piece of code is not present.
Well, to be straight-forward (though not optimal because with a
duplication), just add the same lines as above at the beginning of
src/misc.c.
I believe it will solve the problem.
--
Julien ÉLIE
« – À la plage ? Mais il pleut !
– Pas du tout ! Dans le midi de la Gaule, il pleut. Ici, c'est tout
juste un peu humide. Vivifiant. Pas vrai, Astérix ?
– Ce matin, ça devient de plus en plus vivifiant ! » (Astérix)
Re: SLRN build fail on macOS
Author: Julien ÉLIE
Date: Sat, 13 Feb 2021 09:32
Date: Sat, 13 Feb 2021 09:32
64 lines
4140 bytes
4140 bytes
Also crossposting to the most appropriate newsgroup (news.software.readers). The original question is: where to submit patches for slrn? Is development still active? (it seems that there had been 3 commits in January by John E. Davis after 4 years without any commit at all) There's an improvement to add to the VA_COPY portability code. slrn's autoconf/configure.ac file uses code taken from very old glib 1.2.8 (according to a comment). Nowadays, va_copy could just be defined as: /* * C99 requires va_copy. Older versions of GCC provide __va_copy. Per the * Autoconf manual, memcpy is a generally portable fallback. */ #ifndef va_copy # ifdef __va_copy # define va_copy(d, s) __va_copy((d), (s)) # else # define va_copy(d, s) memcpy(&(d), &(s), sizeof(va_list)) # endif #endif -- Julien Le 13/02/2021 à 10:24, Julien ÉLIE a écrit : > Bonjour Gérald, > >>> #ifndef va_copy >>> #   ifdef __va_copy >>> #       define va_copy(d, s) __va_copy((d), (s)) >>> #   else >>> #       define va_copy(d, s) memcpy(&(d), &(s), sizeof(va_list)) >>> #   endif >>> #endif >> >> As I said, it's beyond my skills or knowledge. >> What is the file to patch with this? >> Anything else to modify? > > I see that VA_COPY is only used twice in srln source code. > > Once in src/snprintf.c, where there is: > > /* Define VA_COPY() to do the right thing for copying va_list variables. >  * config.h may have already defined VA_COPY as va_copy or __va_copy. >  */ > #ifndef VA_COPY > # if (defined (__GNUC__) && defined (__PPC__) && (defined (_CALL_SYSV) > || defined (__WIN32__))) || defined (__WATCOMC__) > # define VA_COPY(ap1, ap2)  (*(ap1) = *(ap2)) > # elif defined (VA_COPY_AS_ARRAY) > # define VA_COPY(ap1, ap2)  memmove ((ap1), (ap2), sizeof (va_list)) > # else /* va_list is a pointer */ > # define VA_COPY(ap1, ap2)  ((ap1) = (ap2)) > # endif /* va_list is a pointer */ > #endif /* !VA_COPY */ > > And another time in src/misc.c where that piece of code is not present. > > Well, to be straight-forward (though not optimal because with a > duplication), just add the same lines as above at the beginning of > src/misc.c. > I believe it will solve the problem.
Re: SLRN build fail on macOS
Author: Gérald Niel
Date: Sat, 13 Feb 2021 12:23
Date: Sat, 13 Feb 2021 12:23
38 lines
3231 bytes
3231 bytes
[Followup-To: news.software.readers] Le Samedi 13 février 2021 à 09:24 UTC, Julien ÉLIE écrivait sur news.software.nntp : > Once in src/snprintf.c, where there is: > /* Define VA_COPY() to do the right thing for copying va_list variables. > * config.h may have already defined VA_COPY as va_copy or __va_copy. > */ > #ifndef VA_COPY > # if (defined (__GNUC__) && defined (__PPC__) && (defined (_CALL_SYSV) >|| defined (__WIN32__))) || defined (__WATCOMC__) > # define VA_COPY(ap1, ap2) (*(ap1) = *(ap2)) > # elif defined (VA_COPY_AS_ARRAY) > # define VA_COPY(ap1, ap2) memmove ((ap1), (ap2), sizeof (va_list)) > # else /* va_list is a pointer */ > # define VA_COPY(ap1, ap2) ((ap1) = (ap2)) > # endif /* va_list is a pointer */ > #endif /* !VA_COPY */ > And another time in src/misc.c where that piece of code is not present. > Well, to be straight-forward (though not optimal because with a > duplication), just add the same lines as above at the beginning of > src/misc.c. > I believe it will solve the problem. Thanks, it works. I will be able to test the patch for the libcanlock v3. @+ -- On ne le dira jamais assez, l'anarchisme, c'est l'ordre sans le gouvernement ; c'est la paix sans la violence. C'est le contraire précisément de tout ce qu'on lui reproche, soit par ignorance, soit par mauvaise foi. -+- Hem Day -+-
Re: RFC 8315 perl hooks for Inn (was: Re: Systems running news servers)
Author: Thomas Hochstein
Date: Sun, 23 Aug 2026 13:12
Date: Sun, 23 Aug 2026 13:12
46 lines
3810 bytes
3810 bytes
Julien ÉLIE wrote on 2021-02-08, quoting Gérald Niel: >>> https://code.th-h.de/?p=usenet/INN.git;a=tree;f=filter >> >> I think I've succeffuly rewrited those hooks to be RFC 8315 compliant. >> >> If that works and looks good, tell me how to (and where) submit these. > > As Thomas reads this newsgroup, just provide a link to your patch. > Thanks for it! Thanks again to Gérald! I've now (some years later ...) updated my code. (Currently here: <https://code.virtcomm.de/thh/INN-config/>) For INN 2.7.0 and newer, those changes to filter_innd.pl or cleanfeed.local are now obsolote as INN has native support for Cancel-Lock/-Key, if compiled accordingly. For older versions, the code may still be of value. You may still need the code in filter_nnrpd.pl if you change the Message-ID in this filter. Yes, you should never change a Message-ID, even in a posting filter, but you may want to under special cirumstances. I do that in my local installation, triggered only for my own client, to generate more "meaningful" Message-IDs. If you change Message-IDs in filter_nnrpd.pl, you have to replace submitted Cancel-Lock/-Key headers, too, because they are generated by INN (or a newsreader) before filter_nnrpd.pl is run. Due to those special circumstances, my filter_nnrpd.pl implementation can now either add news hashes to existing Cancel-Lock/-Key headers or completely replace the current headers. You can also choose how many and what hashes to use (sha1, sha256 and/or sha521). For INN 2.7.0 and onwards, the code will get the secrets from inn-secrets.conf; for older versions, you have to supply the secret in code, as usual. So, both filter_nnrpd.pl and cleanfeed.local will work for older versions of INN (or if you don't want to use the native support [1]), and filter_nnrpd.pl will work with INN 2.7 to replace Cancel-Lock/-Key headers if you're already messing with Message-IDs in filter_nnrpd.pl. [1] You will need an inn-secrets.conf file for INN 2.7.0 and newer. -thh
Re: RFC 8315 perl hooks for Inn
Author: Julien ÉLIE
Date: Tue, 01 Sep 2026 12:12
Date: Tue, 01 Sep 2026 12:12
26 lines
2797 bytes
2797 bytes
Hi Thomas, > Thanks again to Gérald! Yes! I've forwarded your message to him. I am really unsure he still reads Usenet newsgroups. > I've now (some years later ...) updated my code. > (Currently here: <https://code.virtcomm.de/thh/INN-config/>) > > Due to those special circumstances, my filter_nnrpd.pl implementation > can now either add news hashes to existing Cancel-Lock/-Key headers or > completely replace the current headers. You can also choose how many > and what hashes to use (sha1, sha256 and/or sha512). For INN 2.7.0 and > onwards, the code will get the secrets from inn-secrets.conf; for > older versions, you have to supply the secret in code, as usual. A nice move. Thanks for the improvement and refresh of the scripts! -- Julien ÉLIE « – Mais je leur ai simplement demandé si c'était la bonne route !!! – Ils nous ont fait une 'éponse de No'mand ! » (Astérix)
Page 2 of 2 • 61 total messages
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