diff options
Diffstat (limited to 'core/systemd/0001-journal-fix-broken-tags-_SOURCE_REALTIME_TIMESTAMP-a.patch')
-rw-r--r-- | core/systemd/0001-journal-fix-broken-tags-_SOURCE_REALTIME_TIMESTAMP-a.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/core/systemd/0001-journal-fix-broken-tags-_SOURCE_REALTIME_TIMESTAMP-a.patch b/core/systemd/0001-journal-fix-broken-tags-_SOURCE_REALTIME_TIMESTAMP-a.patch new file mode 100644 index 000000000..19edce5f4 --- /dev/null +++ b/core/systemd/0001-journal-fix-broken-tags-_SOURCE_REALTIME_TIMESTAMP-a.patch @@ -0,0 +1,35 @@ +From d378991747d67fff1d4dc39e7fb2bc8f49f1b561 Mon Sep 17 00:00:00 2001 +From: Mirco Tischler <mt-ml@gmx.de> +Date: Sat, 13 Apr 2013 01:03:49 +0200 +Subject: [PATCH] journal: fix broken tags _SOURCE_REALTIME_TIMESTAMP and + _MACHINE_ID + +--- + src/journal/journald-server.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c +index 53e3830..be84323 100644 +--- a/src/journal/journald-server.c ++++ b/src/journal/journald-server.c +@@ -538,7 +538,7 @@ static void dispatch_message_real( + char pid[sizeof("_PID=") + DECIMAL_STR_MAX(ucred->pid)], + uid[sizeof("_UID=") + DECIMAL_STR_MAX(ucred->uid)], + gid[sizeof("_GID=") + DECIMAL_STR_MAX(ucred->gid)], +- source_time[sizeof("_SOURCE_REALTIME_TIMESTAMP=" + DECIMAL_STR_MAX(usec_t))], ++ source_time[sizeof("_SOURCE_REALTIME_TIMESTAMP=") + DECIMAL_STR_MAX(usec_t)], + boot_id[sizeof("_BOOT_ID=") + 32] = "_BOOT_ID=", + machine_id[sizeof("_MACHINE_ID=") + 32] = "_MACHINE_ID="; + +@@ -699,7 +699,7 @@ static void dispatch_message_real( + + r = sd_id128_get_machine(&id); + if (r >= 0) { +- sd_id128_to_string(id, machine_id + sizeof("_MACHINE_ID") - 1); ++ sd_id128_to_string(id, machine_id + sizeof("_MACHINE_ID=") - 1); + IOVEC_SET_STRING(iovec[n++], machine_id); + } + +-- +1.8.2.1 + |