]> git.ipfire.org Git - thirdparty/systemd.git/commit
journal-file: allow opening journal files for write when machine ID is not initialized
authorLennart Poettering <lennart@poettering.net>
Wed, 1 Feb 2023 11:23:54 +0000 (12:23 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 21 Feb 2023 09:47:53 +0000 (10:47 +0100)
commit07f1c7aa9db7a98e0ba1eb1b0d42f171925fc5eb
tree8dba0128a122a47534a905fc6a1004463ebc6ab6
parent51ab0afed48dc55a211fbb610e188221446eb61f
journal-file: allow opening journal files for write when machine ID is not initialized

We allow reading them, and we allow creating them, but we so far did not
allow opening existing ones for write – if the machine ID is not
initialized.

Let's fix that.

(This is just to fix an asymmetry. I have no immediate use for this. But
test code should in theory be able to use this, if it runs in an
incompletely initialized environment.)
src/libsystemd/sd-journal/journal-file.c