]> git.ipfire.org Git - thirdparty/systemd.git/commit
journal-remote: when an entry is rejected with -EBADMSG, do not rotate the journal...
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 17 May 2018 07:27:30 +0000 (09:27 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 31 May 2018 11:04:18 +0000 (13:04 +0200)
commite743ce7053bdeb0b15220f7d842eb48d6721e48b
tree2eae1adbfa233d1c61ac441408af1b8da6af2942
parent41b0b1274d34db1605fb78c1c82e420d7e742f6e
journal-remote: when an entry is rejected with -EBADMSG, do not rotate the journal file

Something is wrong with the entry (probably a missing timestamp), so no point
in rotating. But suppress the error in process_source(), so that the processing
of the data stream continues.

Also, just return 0 from writer_write() on success, the only caller doesn't
care.
src/journal-remote/journal-remote-parse.c
src/journal-remote/journal-remote-write.c
test/fuzz-corpus/journal-remote/invalid-ts.txt [new file with mode: 0644]