shared/logs-show: do not overwrite journal time in export format with source timestamps
authormsizanoen1 <msizanoen@qtmlabs.xyz>
Wed, 12 Oct 2022 06:40:05 +0000 (13:40 +0700)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 14 Oct 2022 16:05:04 +0000 (18:05 +0200)
commit417cbcd6be49c2792fb1ed70fefb41cb7ac3c3bf
tree7b8ea533de26870d0bdc1dcc040ddcbccebd9b8a
parent2ce39d78b8a6c01a0750f648a615606cb186ba43
shared/logs-show: do not overwrite journal time in export format with source timestamps

Using _SOURCE_{MONOTONIC,REALTIME}_TIMESTAMP in place of the results of
sd_journal_get_{monotonic,realtime}_usecs in export formats might cause
internal inconsistency of realtime timestamp values within a journal export,
violating the export file format and causing systemd-journal-remote to
mass-generate journal files.

Fix this by using the real journal timestamps for
__{REALTIME,MONOTONIC}_TIMESTAMP.
src/shared/logs-show.c