1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

journal: fix SD_JOURNAL_SYSTEM_ONLY flag

This commit is contained in:
Lennart Poettering 2012-06-09 15:03:22 +02:00
parent 089842938d
commit 38a6db16dc

View File

@ -943,7 +943,8 @@ static int add_file(sd_journal *j, const char *prefix, const char *dir, const ch
assert(filename);
if ((j->flags & SD_JOURNAL_SYSTEM_ONLY) &&
!startswith(filename, "system.journal"))
!(streq(filename, "system.journal") ||
(startswith(filename, "system@") && endswith(filename, ".journal"))))
return 0;
if (dir)