From dae47eaae2cbd4be858d623a7e041e938522094a Mon Sep 17 00:00:00 2001 From: Conrad Meyer Date: Oct 28 2011 01:33:39 +0000 Subject: Fix bug 739494 (log as LOG_DAEMON) --- diff --git a/aiccu-syslog-daemon.patch b/aiccu-syslog-daemon.patch new file mode 100644 index 0000000..07961c9 --- /dev/null +++ b/aiccu-syslog-daemon.patch @@ -0,0 +1,11 @@ +--- aiccu/common/common.c.orig 2011-10-27 18:32:11.933323958 -0700 ++++ aiccu/common/common.c 2011-10-27 18:32:21.247179132 -0700 +@@ -37,7 +37,7 @@ + if (g_aiccu && !g_aiccu->verbose && level == LOG_DEBUG) return; + + #ifndef _WIN32 +- if (g_aiccu && g_aiccu->daemonize > 0) vsyslog(LOG_LOCAL7|level, fmt, ap); ++ if (g_aiccu && g_aiccu->daemonize > 0) vsyslog(LOG_DAEMON|level, fmt, ap); + else + { + vfprintf(stderr, fmt, ap); diff --git a/aiccu.spec b/aiccu.spec index a186cf5..7fe7b9e 100644 --- a/aiccu.spec +++ b/aiccu.spec @@ -18,6 +18,7 @@ Source0: http://www.sixxs.net/archive/sixxs/aiccu/unix/aiccu_20070115.tar.gz Source1: aiccu.service Patch0: aiccu-cloexec.patch Patch1: aiccu-run.patch +Patch2: aiccu-syslog-daemon.patch BuildRequires: gnutls-devel BuildRequires: systemd-units Requires: iproute @@ -36,6 +37,7 @@ For more information about SixXS check http://www.sixxs.net %setup -q -n %{name} %patch0 -p1 %patch1 -p1 -b .run +%patch2 -p1 -b .syslog-daemon # fix executable permissions on non-executable content # so debuginfo can pick them up properly