]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journald: fixed assertion failure when system journal rotation fails (#9893)
authorRenaud Métrich <1163635+rmetrich@users.noreply.github.com>
Mon, 3 Sep 2018 03:42:39 +0000 (05:42 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 3 Sep 2018 03:42:39 +0000 (12:42 +0900)
src/journal/journald-server.c

index edcdc9d871d8e736dca66b16d59a17947380c450..4f63907ebff33daacf3ad70d61dbfc23c6c84b56 100644 (file)
@@ -1035,7 +1035,8 @@ int server_flush_to_var(Server *s, bool require_flag_file) {
         r = 0;
 
 finish:
-        journal_file_post_change(s->system_journal);
+        if (s->system_journal)
+                journal_file_post_change(s->system_journal);
 
         s->runtime_journal = journal_file_close(s->runtime_journal);