mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-23 11:17:21 -08:00
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:
@@ -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
|
||||
+4
-1
@@ -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"
|
||||
+4
-1
@@ -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"
|
||||
Reference in New Issue
Block a user