Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/openrc:master commit in: src/rc/
Date: Tue, 22 May 2018 22:12:49
Message-Id: 1527027103.7e56a49e23c810673b83e48eb9ca36229bb4016e.williamh@OpenRC
1 commit: 7e56a49e23c810673b83e48eb9ca36229bb4016e
2 Author: William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
3 AuthorDate: Tue May 22 22:11:43 2018 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Tue May 22 22:11:43 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=7e56a49e
7
8 Logger: only log printable characters and newlines
9
10 X-Gentoo-Bug: 651412
11 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=651412
12
13 src/rc/rc-logger.c | 2 ++
14 1 file changed, 2 insertions(+)
15
16 diff --git a/src/rc/rc-logger.c b/src/rc/rc-logger.c
17 index 062ce3d9..22926211 100644
18 --- a/src/rc/rc-logger.c
19 +++ b/src/rc/rc-logger.c
20 @@ -87,6 +87,8 @@ write_log(int logfd, const char *buffer, size_t bytes)
21 }
22
23 if (!in_escape) {
24 + if (!isprint((int) *p) && *p != '\n')
25 + goto cont;
26 if (write(logfd, p++, 1) == -1)
27 eerror("write: %s", strerror(errno));
28 continue;