app-admin/rsyslog: fix omusrmsg
authorThomas Deutschmann <whissi@gentoo.org>
Thu, 13 Dec 2018 13:19:27 +0000 (14:19 +0100)
committerThomas Deutschmann <whissi@gentoo.org>
Thu, 13 Dec 2018 13:19:42 +0000 (14:19 +0100)
Closes: https://bugs.gentoo.org/673004
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
app-admin/rsyslog/files/rsyslog-8.40.0-fix-omusrmsg.patch [new file with mode: 0644]
app-admin/rsyslog/rsyslog-8.38.0-r2.ebuild [moved from app-admin/rsyslog/rsyslog-8.38.0-r1.ebuild with 99% similarity]
app-admin/rsyslog/rsyslog-8.39.0-r1.ebuild [moved from app-admin/rsyslog/rsyslog-8.39.0.ebuild with 99% similarity]
app-admin/rsyslog/rsyslog-8.40.0-r1.ebuild [moved from app-admin/rsyslog/rsyslog-8.40.0.ebuild with 99% similarity]

diff --git a/app-admin/rsyslog/files/rsyslog-8.40.0-fix-omusrmsg.patch b/app-admin/rsyslog/files/rsyslog-8.40.0-fix-omusrmsg.patch
new file mode 100644 (file)
index 0000000..9247d0b
--- /dev/null
@@ -0,0 +1,13 @@
+https://github.com/rsyslog/rsyslog/issues/3346
+
+--- a/tools/omusrmsg.c
++++ b/tools/omusrmsg.c
+@@ -261,7 +261,7 @@ static rsRetVal wallmsg(uchar* pMsg, instanceData *pData)
+ 
+               /* compute the device name */
+               strcpy(p, _PATH_DEV);
+-              memcpy(p, ut.ut_line, UNAMESZ);
++              strncat(p, ut.ut_line, UNAMESZ);
+ 
+               /* we must be careful when writing to the terminal. A terminal may block
+                * (for example, a user has pressed <ctl>-s). In that case, we can not
similarity index 99%
rename from app-admin/rsyslog/rsyslog-8.38.0-r1.ebuild
rename to app-admin/rsyslog/rsyslog-8.38.0-r2.ebuild
index 8cd541ba555d6a8dc173397b6944200a51b630c8..0433b628342ddc36cc958e7d7f73276dc5045db6 100644 (file)
@@ -23,7 +23,10 @@ else
                doc? ( https://www.rsyslog.com/files/download/${PN}/${PN}-doc-${PV}.tar.gz )
        "
 
-       PATCHES=( "${FILESDIR}"/${P}-fix-omprog-output-capture-mt-test.patch )
+       PATCHES=(
+               "${FILESDIR}"/${P}-fix-omprog-output-capture-mt-test.patch
+               "${FILESDIR}"/${PN}-8.40.0-fix-omusrmsg.patch
+       )
 fi
 
 LICENSE="GPL-3 LGPL-3 Apache-2.0"
similarity index 99%
rename from app-admin/rsyslog/rsyslog-8.39.0.ebuild
rename to app-admin/rsyslog/rsyslog-8.39.0-r1.ebuild
index 941114204018e016ac87354f8c59770a4721aee8..1f68aea21c3b2e3a1362f201d61d0a0e2450a027 100644 (file)
@@ -23,7 +23,10 @@ else
                doc? ( https://www.rsyslog.com/files/download/${PN}/${PN}-doc-${PV}.tar.gz )
        "
 
-       PATCHES=( "${FILESDIR}"/${P}-fix-liblogging_stdlog-linking.patch )
+       PATCHES=(
+               "${FILESDIR}"/${P}-fix-liblogging_stdlog-linking.patch
+               "${FILESDIR}"/${PN}-8.40.0-fix-omusrmsg.patch
+       )
 fi
 
 LICENSE="GPL-3 LGPL-3 Apache-2.0"
similarity index 99%
rename from app-admin/rsyslog/rsyslog-8.40.0.ebuild
rename to app-admin/rsyslog/rsyslog-8.40.0-r1.ebuild
index 62debd0de6414c5b5df262b140c82ba4b4e91c48..985c553dc4a6336ccae8af719fa63e2a26a37151 100644 (file)
@@ -22,6 +22,8 @@ else
                https://www.rsyslog.com/files/download/${PN}/${P}.tar.gz
                doc? ( https://www.rsyslog.com/files/download/${PN}/${PN}-doc-${PV}.tar.gz )
        "
+
+       PATCHES=( "${FILESDIR}"/${PN}-8.40.0-fix-omusrmsg.patch )
 fi
 
 LICENSE="GPL-3 LGPL-3 Apache-2.0"