public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Ondrej Vasik <ovasik@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/inn] epel10: use rsyslog instead of sysklogd, do not log fatal error for non-error
Date: Wed, 26 Aug 2026 08:05:49 GMT	[thread overview]
Message-ID: <178773154962.1.6862601194311119466.rpms-inn-90dafdaf2601@fedoraproject.org> (raw)

        A new commit has been pushed.

        Repo   : rpms/inn
        Branch : epel10
        Commit : 90dafdaf2601ca603b5dc46f72462169dff0b759
        Author : Ondrej Vasik <ovasik@fedoraproject.org>
        Date   : 2008-01-16T13:06:34+00:00
        Stats  : +38/-15 in 2 file(s)
        URL    : https://src.fedoraproject.org/rpms/inn/c/90dafdaf2601ca603b5dc46f72462169dff0b759?branch=epel10

        Log:
        use rsyslog instead of sysklogd, do not log fatal error for non-error
eaddrinuse in rcreader

---
diff --git a/inn-2.4.3.rcreaderaddrinuse.patch b/inn-2.4.3.rcreaderaddrinuse.patch
new file mode 100644
index 0000000..c5b8b3c
--- /dev/null
+++ b/inn-2.4.3.rcreaderaddrinuse.patch
@@ -0,0 +1,16 @@
+diff -urNp inn-2.4.3-orig/innd/rc.c inn-2.4.3/innd/rc.c
+--- inn-2.4.3-orig/innd/rc.c	2008-01-16 13:18:49.000000000 +0100
++++ inn-2.4.3/innd/rc.c	2008-01-16 13:25:48.000000000 +0100
+@@ -1907,11 +1907,11 @@ RCsetup(int i)
+     /* Set it up to wait for connections. */
+     if (listen(i, MAXLISTEN) < 0) {
+ 	j = errno;
+-	syslog(L_FATAL, "%s cant listen RCreader %m", LogName);
+ 	/* some IPv6 systems already listening on any address will 
+ 	   return EADDRINUSE when trying to listen on the IPv4 socket */
+ 	if (j == EADDRINUSE)
+ 	   return;
++	syslog(L_FATAL, "%s cant listen RCreader %m", LogName);
+ 	exit(1);
+     }
+ 

diff --git a/inn.spec b/inn.spec
index 791afaf..ccf11d5 100644
--- a/inn.spec
+++ b/inn.spec
@@ -1,7 +1,7 @@
 Summary: The InterNetNews (INN) system, an Usenet news server
 Name: inn
 Version: 2.4.3
-Release: 8%{?dist}
+Release: 9%{?dist}
 #see LICENSE file for details
 License: GPL+ and BSD and MIT and Public Domain
 Group: System Environment/Daemons
@@ -20,6 +20,7 @@ Patch4: inn-2.4.1.pie.patch
 Patch6: inn-2.4.1.posix.patch
 Patch7: inn-2.4.3.warn.patch
 Patch8: inn-2.4.2-makedbz.patch
+Patch9: inn-2.4.3.rcreaderaddrinuse.patch
 BuildRequires: perl-devel python db4-devel byacc krb5-devel pam-devel e2fsprogs-devel
 Prereq: /sbin/chkconfig, grep, coreutils, sed
 Requires: bash >= 2.0, inews
@@ -77,6 +78,7 @@ local news servers.
 %patch6 -p1 -b .posix
 %patch7 -p1 -b .warn
 %patch8 -p1 -b .makedbz
+%patch9 -p1 -b .addrinuse
 
 perl -pi -e 's/LOCK_READ/LLOCK_READ/' `find . -type f`
 perl -pi -e 's/LOCK_WRITE/LLOCK_WRITE/' `find . -type f`
@@ -210,26 +212,26 @@ chown -R news:news /var/log/news*
 service innd stop > /dev/null 2>&1
 exit 0
 
-%triggerin -- sysklogd
-if [ -f /etc/syslog.conf ]; then
-  if ! grep -q INN /etc/syslog.conf; then
-    sed 's/mail.none;/mail.none;news.none;/' < /etc/syslog.conf > /etc/syslog.conf.inn
-    mv /etc/syslog.conf.inn /etc/syslog.conf
+%triggerin -- rsyslog
+if [ -f /etc/rsyslog.conf ]; then
+  if ! grep -q INN /etc/rsyslog.conf; then
+    sed 's/mail.none;/mail.none;news.none;/' < /etc/rsyslog.conf > /etc/rsyslog.conf.inn
+    mv /etc/rsyslog.conf.inn /etc/rsyslog.conf
 
     echo '' \
-       >> /etc/syslog.conf
+       >> /etc/rsyslog.conf
     echo '#' \
-       >> /etc/syslog.conf
+       >> /etc/rsyslog.conf
     echo '# INN' \
-       >> /etc/syslog.conf
+       >> /etc/rsyslog.conf
     echo '#' \
-       >> /etc/syslog.conf
-    echo 'news.=crit                                        /var/log/news/news.crit'   >> /etc/syslog.conf
-    echo 'news.=err                                         /var/log/news/news.err'    >> /etc/syslog.conf
-    echo 'news.notice                                       /var/log/news/news.notice' >> /etc/syslog.conf
+       >> /etc/rsyslog.conf
+    echo 'news.=crit                                        /var/log/news/news.crit'   >> /etc/rsyslog.conf
+    echo 'news.=err                                         /var/log/news/news.err'    >> /etc/rsyslog.conf
+    echo 'news.notice                                       /var/log/news/news.notice' >> /etc/rsyslog.conf
     fi
-  if [ -f /var/run/syslog.pid ]; then
-    kill -HUP `cat /var/run/syslog.pid` 2> /dev/null ||:
+  if [ -f /var/run/rsyslogd.pid ]; then
+    kill -HUP `cat /var/run/rsyslogd.pid` 2> /dev/null ||:
   fi
 fi
 
@@ -293,6 +295,11 @@ exit 0
 %{_mandir}/man1/inews*
 
 %changelog
+* Wed Jan 16 2008 Ondrej Vasik <ovasik@redhat.com> 2.4.3-9
+- do not show annoying fatal log message when nonfatal error 
+  eaddrinuse occured in rcreader
+- use /etc/rsyslog.conf instead of /etc/syslog.conf
+
 * Mon Jan 07 2008 Ondrej Vasik <ovasik@redhat.com> 2.4.3-8
 - initscript changes - review changes caused errors while
   in stop() phase - not known variable NEWSBIN(#401241)

                 reply	other threads:[~2026-08-26  8:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178773154962.1.6862601194311119466.rpms-inn-90dafdaf2601@fedoraproject.org \
    --to=ovasik@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox