diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-06-27 23:15:27 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-06-27 23:20:15 +0200 |
commit | fba84e121b4a50113c3c4ceef66617036c0cb882 (patch) | |
tree | 741507ca79e0924ebacb0e58ff219a989f66bc93 /src/libsystemd | |
parent | catalog,po: update Polish translation (diff) | |
download | systemd-fba84e121b4a50113c3c4ceef66617036c0cb882.tar.xz systemd-fba84e121b4a50113c3c4ceef66617036c0cb882.zip |
journalctl: read env vars that override compiled catalog database and source files
This makes it a bit easier to test catalog files without installing
systemd.
Diffstat (limited to '')
-rw-r--r-- | src/libsystemd/sd-journal/sd-journal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-journal/sd-journal.c b/src/libsystemd/sd-journal/sd-journal.c index 339ac26529..87e2428864 100644 --- a/src/libsystemd/sd-journal/sd-journal.c +++ b/src/libsystemd/sd-journal/sd-journal.c @@ -3496,7 +3496,7 @@ _public_ int sd_journal_get_catalog(sd_journal *j, char **ret) { if (r < 0) return r; - r = catalog_get(CATALOG_DATABASE, id, &text); + r = catalog_get(secure_getenv("SYSTEMD_CATALOG") ?: CATALOG_DATABASE, id, &text); if (r < 0) return r; |