app-admin/rsyslog: fix omusrmsg

Closes: https://bugs.gentoo.org/673004
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
This commit is contained in:
Thomas Deutschmann
2018-12-13 14:19:42 +01:00
parent 11844babda
commit cee2b65692
4 changed files with 23 additions and 2 deletions
@@ -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
@@ -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"
@@ -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"
@@ -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"