1 |
commit: b35e03b6b1acc841ac33f601dd39c1152523621e |
2 |
Author: William Hubbs <w.d.hubbs <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri May 11 00:35:24 2018 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 11 00:35:24 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=b35e03b6 |
7 |
|
8 |
Revert "Logger: only log printable characters and newlines" |
9 |
|
10 |
This reverts commit 2b1392af2fe9e5dfc8eda2f19d896efdc41840bf. |
11 |
This seems to create issues shutting down, so I need to look into it |
12 |
further. |
13 |
|
14 |
src/rc/rc-logger.c | 5 ++--- |
15 |
1 file changed, 2 insertions(+), 3 deletions(-) |
16 |
|
17 |
diff --git a/src/rc/rc-logger.c b/src/rc/rc-logger.c |
18 |
index 1da3f59c..062ce3d9 100644 |
19 |
--- a/src/rc/rc-logger.c |
20 |
+++ b/src/rc/rc-logger.c |
21 |
@@ -87,9 +87,8 @@ write_log(int logfd, const char *buffer, size_t bytes) |
22 |
} |
23 |
|
24 |
if (!in_escape) { |
25 |
- if (isprint((unsigned char) *p) || *p == '\n') |
26 |
- if (write(logfd, p++, 1) == -1) |
27 |
- eerror("write: %s", strerror(errno)); |
28 |
+ if (write(logfd, p++, 1) == -1) |
29 |
+ eerror("write: %s", strerror(errno)); |
30 |
continue; |
31 |
} |