aboutsummaryrefslogtreecommitdiff
path: root/misc/syslog.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-09-05 09:34:39 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-09-05 09:34:39 -0300
commit45459476ecc8fe315734912baf7adf3551cff640 (patch)
tree11430ea1a915b928dd5a5d6b9311c6cdb90de47e /misc/syslog.c
parent930993921f2f381b545ea1b1f2d9c534b2b72b08 (diff)
downloadglibc-45459476ecc8fe315734912baf7adf3551cff640.tar
glibc-45459476ecc8fe315734912baf7adf3551cff640.tar.gz
glibc-45459476ecc8fe315734912baf7adf3551cff640.tar.bz2
glibc-45459476ecc8fe315734912baf7adf3551cff640.zip
syslog: Remove extra whitespace between timestamp and message (BZ#29544)
The rfc3164 clear states that a single space character must follow the timestamp field. Checked on x86_64-linux-gnu.
Diffstat (limited to 'misc/syslog.c')
-rw-r--r--misc/syslog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/syslog.c b/misc/syslog.c
index b88f66c835..f67d4b58a4 100644
--- a/misc/syslog.c
+++ b/misc/syslog.c
@@ -167,7 +167,7 @@ __vsyslog_internal (int pri, const char *fmt, va_list ap,
_nl_C_locobj_ptr);
#define SYSLOG_HEADER(__pri, __timestamp, __msgoff, pid) \
- "<%d>%s %n%s%s%.0d%s: ", \
+ "<%d>%s%n%s%s%.0d%s: ", \
__pri, __timestamp, __msgoff, \
LogTag == NULL ? __progname : LogTag, \
"[" + (pid == 0), pid, "]" + (pid == 0)