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:
parent
089842938d
commit
38a6db16dc
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user