diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2018-12-13 14:19:27 +0100 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2018-12-13 14:19:42 +0100 |
commit | cee2b656924f8f4b581ebfdfc2b4d2626c9be3ba (patch) | |
tree | 41cf1b7c9c14dc0650697a036f00b2f61697dd40 /app-admin/rsyslog/files | |
parent | net-dns/bind-tools: x86 stable (bug #657654) (diff) | |
download | gentoo-cee2b656924f8f4b581ebfdfc2b4d2626c9be3ba.tar.gz gentoo-cee2b656924f8f4b581ebfdfc2b4d2626c9be3ba.tar.bz2 gentoo-cee2b656924f8f4b581ebfdfc2b4d2626c9be3ba.zip |
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>
Diffstat (limited to 'app-admin/rsyslog/files')
-rw-r--r-- | app-admin/rsyslog/files/rsyslog-8.40.0-fix-omusrmsg.patch | 13 |
1 files changed, 13 insertions, 0 deletions
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 index 000000000000..9247d0b067f4 --- /dev/null +++ b/app-admin/rsyslog/files/rsyslog-8.40.0-fix-omusrmsg.patch @@ -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 |