]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/journal/journal-file.c
journal-file: refactor journal_file_open_reliably()
authorLennart Poettering <lennart@poettering.net>
Thu, 25 Oct 2018 17:23:23 +0000 (19:23 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 25 Oct 2018 19:43:09 +0000 (21:43 +0200)
commit681276589159fa08e0a8a9ece6f33f34ee0e11a8
tree7aae87f1b240782c50c2c484259f4e818fbf3026
parent7a4d21ad20fd8314b2ad31e66d220023e29b2283
journal-file: refactor journal_file_open_reliably()

Let's split out the part that actually renames the file in case we can't
open it into a new function journal_file_dispose().

This way we can reuse the function in other cases where we want to open
a file but can't.
src/journal/journal-file.c
src/journal/journal-file.h