On Sun, Nov 29, 2026 at 11:47:42AM +0100, Alvar Penning wrote:
> Hi all,
>
> The attached diff updates ngircd to its latest release, version 29.
> Both releases contain security and bug fixes.
>
> - https://github.com/ngircd/ngircd/releases/tag/rel-28
> - https://github.com/ngircd/ngircd/releases/tag/rel-29
>
> The patches were regenerated in the diff: line numbers changed, but no
> content.
>
> Best,
> Alvar
Hi Alvar,
thanks for your patch and also your earlier work on v28! I will test
v29 later during the day.
In the meantime: since this addresses a number of security issues, I
think this could justify backporting to -stable? However I am unsure
what the process there is.
Regards,
Michael
>
>
> diff --git Makefile Makefile
> index 18929caadd2..3bfb31a92d1 100644
> --- Makefile
> +++ Makefile
> @@ -1,6 +1,6 @@
> COMMENT = lightweight irc server
>
> -DISTNAME = ngircd-27
> +DISTNAME = ngircd-29
>
> CATEGORIES = net
>
> diff --git distinfo distinfo
> index f7d160ce0dc..0330743bcb4 100644
> --- distinfo
> +++ distinfo
> @@ -1,2 +1,2 @@
> -SHA256 (ngircd-27.tar.gz) = /TjvITOdr4HWr0pjC6Oy3lGhtCwYGEPud2NaWmYf5zw=
> -SIZE (ngircd-27.tar.gz) = 554709
> +SHA256 (ngircd-29.tar.gz) = +VP8sSePtJVQqEbAUU+6LiwYOleiIC6PsAxPSAHft8c=
> +SIZE (ngircd-29.tar.gz) = 577674
> diff --git patches/patch-doc_sample-ngircd_conf_tmpl
> patches/patch-doc_sample-ngircd_conf_tmpl
> index 443d980f979..ad45869168f 100644
> --- patches/patch-doc_sample-ngircd_conf_tmpl
> +++ patches/patch-doc_sample-ngircd_conf_tmpl
> @@ -1,7 +1,7 @@
> Index: doc/sample-ngircd.conf.tmpl
> --- doc/sample-ngircd.conf.tmpl.orig
> +++ doc/sample-ngircd.conf.tmpl
> -@@ -81,14 +81,14 @@
> +@@ -84,14 +84,14 @@
> # Group ID under which the ngIRCd should run; you can use the name
> # of the group or the numerical ID. ATTENTION: For this to work the
> # server must have been started with root privileges!
> @@ -18,7 +18,7 @@ Index: doc/sample-ngircd.conf.tmpl
>
> [Limits]
> # Define some limits and timeouts for this ngIRCd instance. Default
> -@@ -159,7 +159,7 @@
> +@@ -162,7 +162,7 @@
> # binary. By default ngIRCd won't use the chroot() feature.
> # ATTENTION: For this to work the server must have been started
> # with root privileges!
> @@ -27,7 +27,7 @@ Index: doc/sample-ngircd.conf.tmpl
>
> # Set this hostname for every client instead of the real one.
> # Use %x to add the hashed value of the original hostname.
> -@@ -282,7 +282,7 @@
> +@@ -292,7 +292,7 @@
> ;CRLFile = /etc/ssl/CA/crl.pem
>
> # SSL Server Key Certificate
> @@ -36,7 +36,7 @@ Index: doc/sample-ngircd.conf.tmpl
>
> # Select cipher suites allowed for SSL/TLS connections. This defaults
> # to HIGH:!aNULL:@STRENGTH (OpenSSL) or SECURE128 (GnuTLS).
> -@@ -294,10 +294,10 @@
> +@@ -304,10 +304,10 @@
> ;CipherList = SECURE128:-VERS-SSL3.0
>
> # Diffie-Hellman parameters
> diff --git patches/patch-src_ngircd_conf_c patches/patch-src_ngircd_conf_c
> index 961d5855525..1cdaddd851c 100644
> --- patches/patch-src_ngircd_conf_c
> +++ patches/patch-src_ngircd_conf_c
> @@ -1,7 +1,7 @@
> Index: src/ngircd/conf.c
> --- src/ngircd/conf.c.orig
> +++ src/ngircd/conf.c
> -@@ -399,7 +399,7 @@ Conf_Test( void )
> +@@ -422,7 +422,7 @@ Conf_Test( void )
> printf(" MaxConnectionsIP = %d\n", Conf_MaxConnectionsIP);
> printf(" MaxJoins = %d\n", Conf_MaxJoins > 0 ? Conf_MaxJoins : -1);
> printf(" MaxNickLength = %u\n", Conf_MaxNickLength - 1);
> @@ -10,7 +10,7 @@ Index: src/ngircd/conf.c
> printf(" MaxListSize = %d\n", Conf_MaxListSize);
> printf(" PingTimeout = %d\n", Conf_PingTimeout);
> printf(" PongTimeout = %d\n", Conf_PongTimeout);
> -@@ -777,7 +777,7 @@ Set_Defaults(bool InitServers)
> +@@ -801,7 +801,7 @@ Set_Defaults(bool InitServers)
> strlcat(Conf_HelpFile, HELP_FILE, sizeof(Conf_HelpFile));
> strcpy(Conf_ServerPwd, "");
> strlcpy(Conf_PidFile, PID_FILE, sizeof(Conf_PidFile));
> @@ -19,7 +19,7 @@ Index: src/ngircd/conf.c
>
> /* Limits */
> Conf_ConnectRetry = 60;
> -@@ -1546,7 +1546,7 @@ Handle_LIMITS(const char *File, int Line, char *Var, c
> +@@ -1612,7 +1612,7 @@ Handle_LIMITS(const char *File, int Line, char *Var, c
> return;
> }
> if (strcasecmp(Var, "MaxPenaltyTime") == 0) {
> @@ -28,7 +28,7 @@ Index: src/ngircd/conf.c
> if (Conf_MaxPenaltyTime < -1)
> Conf_MaxPenaltyTime = -1; /* "unlimited" */
> return;
> -@@ -2202,8 +2202,8 @@ Validate_Config(bool Configtest, bool Rehash)
> +@@ -2302,8 +2302,8 @@ Validate_Config(bool Configtest, bool Rehash)
>
> if (Conf_MaxPenaltyTime != -1)
> Config_Error(LOG_WARNING,
> diff --git patches/patch-src_ngircd_ngircd_c patches/patch-src_ngircd_ngircd_c
> index d7a0faf1ab6..6534f28b780 100644
> --- patches/patch-src_ngircd_ngircd_c
> +++ patches/patch-src_ngircd_ngircd_c
> @@ -1,7 +1,7 @@
> Index: src/ngircd/ngircd.c
> --- src/ngircd/ngircd.c.orig
> +++ src/ngircd/ngircd.c
> -@@ -30,6 +30,7 @@
> +@@ -31,6 +31,7 @@
> #include <fcntl.h>
> #include <pwd.h>
> #include <grp.h>
> @@ -9,7 +9,7 @@ Index: src/ngircd/ngircd.c
>
> #if defined(DEBUG) && defined(HAVE_MTRACE)
> #include <mcheck.h>
> -@@ -265,6 +266,16 @@ main(int argc, const char *argv[])
> +@@ -270,6 +271,16 @@ main(int argc, const char *argv[])
> exit(1);
> }
>
> @@ -26,7 +26,7 @@ Index: src/ngircd/ngircd.c
> if (!io_library_init(CONNECTION_POOL)) {
> Log(LOG_ALERT,
> "Fatal: Could not initialize IO routines: %s",
> -@@ -564,7 +575,7 @@ Setup_FDStreams(int fd)
> +@@ -613,7 +624,7 @@ Setup_FDStreams(int fd)
> #if !defined(SINGLE_USER_OS)
>
> /**
> @@ -35,7 +35,7 @@ Index: src/ngircd/ngircd.c
> *
> * @param uid User ID
> * @param gid Group ID
> -@@ -588,7 +599,7 @@ NGIRCd_getNobodyID(uid_t *uid, gid_t *gid )
> +@@ -637,7 +648,7 @@ NGIRCd_getNobodyID(uid_t *uid, gid_t *gid )
> }
> #endif
>
> @@ -44,7 +44,7 @@ Index: src/ngircd/ngircd.c
> if (!pwd)
> return false;
>
> -@@ -704,11 +715,11 @@ NGIRCd_Init(bool NGIRCd_NoDaemon)
> +@@ -753,11 +764,11 @@ NGIRCd_Init(bool NGIRCd_NoDaemon)
> if (Conf_UID == 0) {
> pwd = getpwuid(0);
> Log(LOG_INFO,
> diff --git patches/patch-src_ngircd_proc_c patches/patch-src_ngircd_proc_c
> index 3f4c209e793..1d2d20b47ea 100644
> --- patches/patch-src_ngircd_proc_c
> +++ patches/patch-src_ngircd_proc_c
> @@ -9,7 +9,7 @@ Index: src/ngircd/proc.c
>
> #include "log.h"
> #include "io.h"
> -@@ -76,6 +77,9 @@ Proc_Fork(PROC_STAT *proc, int *pipefds, void (*cbfunc
> +@@ -88,6 +89,9 @@ Proc_Fork(PROC_STAT *proc, int *pipefds, void (*cbfunc
> return -1;
> case 0:
> /* New child process: */
> diff --git pkg/PLIST pkg/PLIST
> index f331113b70b..28ef82a5a4d 100644
> --- pkg/PLIST
> +++ pkg/PLIST
> @@ -15,12 +15,12 @@
> share/doc/ngircd/
> share/doc/ngircd/AUTHORS.md
> share/doc/ngircd/Bopm.txt
> +share/doc/ngircd/CONTRIBUTING.md
> share/doc/ngircd/COPYING
> share/doc/ngircd/Capabilities.txt
> share/doc/ngircd/ChangeLog
> share/doc/ngircd/Commands.txt
> share/doc/ngircd/Container.md
> -share/doc/ngircd/Contributing.txt
> share/doc/ngircd/FAQ.md
> share/doc/ngircd/HowToRelease.txt
> share/doc/ngircd/INSTALL.md
> @@ -29,6 +29,7 @@ share/doc/ngircd/NEWS
> share/doc/ngircd/PAM.txt
> share/doc/ngircd/Platforms.txt
> share/doc/ngircd/Protocol.txt
> +share/doc/ngircd/QuickStart.md
> share/doc/ngircd/README-AUX.txt
> share/doc/ngircd/README-BeOS.txt
> share/doc/ngircd/README-Interix.txt
>